[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Linux / Debian2

Annotation of OpenXM/misc/packages/Linux/Debian2/Makefile, Revision 1.9

1.1       takayama    1: # Do source dot.bashrc before doing something.
                      2:
1.9     ! takayama    3: VERSION=1.2.3-9
1.1       takayama    4: # This VERSION must be compatible with debian/control ver.
1.9     ! takayama    5: #   use "make update-version" to update these values.
1.1       takayama    6: #                                OpenXM/download/Makefile
                      7: #                                work/OpenXM/src/asir-port/Makefile
1.7       takayama    8: #                                    (OpenXM/src/asir-port/Makefile)
1.1       takayama    9:
                     10: MD5=md5sum
                     11: OS=`uname -s`
                     12: RSYNC=rsync -avz -e ssh
1.7       takayama   13: #FTP_DIR=/home/ftp/pub/OpenXM/head/knoppix
                     14: FTP_DIR=/home/web/pub/OpenXM/head/knoppix
1.5       takayama   15: TM_OX=work/OpenXM/src/kxx/init-openxm.scm
1.1       takayama   16:
1.5       takayama   17: build-package: fetch  make-tar-ball-2  make-tar-ball-3
1.2       takayama   18:        fakeroot debian/rules build
                     19:        fakeroot debian/rules install
                     20:        fakeroot dpkg-buildpackage
                     21:
                     22: build-deb:
1.1       takayama   23:        fakeroot debian/rules build
                     24:        fakeroot debian/rules install
                     25:        fakeroot dpkg-buildpackage
                     26:
                     27: fetch:
                     28:        if [ ! -f .fetch_done ]; then \
                     29:          rm -rf work ; \
                     30:          mkdir  work ; \
                     31:          (cd work ; cvs -d kerberos.math.kobe-u.ac.jp:/home/cvsroot/openxm checkout OpenXM OpenXM_contrib2) ; \
                     32:        fi
                     33:        touch .fetch_done
                     34:
                     35: build: fetch
                     36:        if [ ! -f .build_done ]; then \
                     37:          touch work/OpenXM/src/asir-port/for_knoppix ;\
                     38:          (cd work/OpenXM/src ;  make ; make install) ;\
                     39:          (cd work/OpenXM/src ; make install-document ) ; \
                     40:        fi
                     41:        touch .build_done
                     42:
                     43: ## Knoppix step 1.  Install asir-port.sh under OpenXM/bin
                     44: ## Knoppix step2 work 2.  Remove FLL files and replace them to a symbolic link
                     45: ## to /home/knoppix/.asir-tmp/...
                     46: build-knoppix: build
                     47:        if [ ! -f .build-knoppix_done ]; then \
                     48:          (cd work/OpenXM/src/asir-port ; make install ) ; \
                     49:          (cd work/OpenXM/src/asir-port ; make install-for-knoppix ) ; \
                     50:        fi
                     51:        touch .build-knoppix_done
                     52:
                     53: ## Generate asir-Linux-${VERSION}.gz, ... under work.
                     54: ## Copy them to the ftp area.
                     55: make-tar-ball-1: build-knoppix
                     56:        if [ ! -f .make-tar-ball-1_done ]; then \
                     57:          (cd work/OpenXM/src/asir-port ; make gentar-for-knoppix ) ; \
                     58:          (cd work/OpenXM/src/asir-port ; make copy-for-knoppix ) ; \
                     59:        fi
                     60:        touch .make-tar-ball-1_done
                     61:
                     62: # Do strip.
                     63: # Generate openxm-binary-${VERSION}.tar.gz under work
                     64: # Compute MD5 and copy it to OpenXM/download
                     65: BINARY_FILES=d0 fep k0 ox ox100start ox_k0 ox_sm1 ox_texmacs oxc \
                     66:     oxgentexi oxlog oxreplace oxweave phc6 polymake2tfb sm1 tigers
                     67: EXCLUDE_FILES=--exclude CVS --exclude .keep_me \
                     68:               --exclude-from ../exclude-files.txt
                     69: FILES=OpenXM/Copyright OpenXM/bin OpenXM/include \
                     70:       OpenXM/lib OpenXM/man OpenXM/rc
                     71:
                     72: make-tar-ball-2: make-tar-ball-1
                     73:        if [ ! -f .make-tar-ball-2_done ]; then \
                     74:          (cd work/OpenXM/bin ; for i in ${BINARY_FILES} ; do strip $$i ; done ) ;\
1.4       takayama   75:          (cd work/OpenXM/rc ; make clean ) ;\
1.1       takayama   76:          (cd work; tar czvf openxm-binary-${OS}-${VERSION}.tar.gz ${EXCLUDE_FILES} ${FILES}) ; \
                     77:          (cd work ; ${MD5} "openxm-binary-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-openxm-binary.md5) ;\
                     78:          (cp work/distinfo-openxm-binary.md5 OpenXM/download) ; \
                     79:          (cp work/OpenXM/lib/version.txt OpenXM/download) ; \
                     80:        fi
                     81:        touch .make-tar-ball-2_done
                     82:
1.5       takayama   83: ##cf.misc-2004/A2/knoppix-2005/Makefile. There is no fix on .asirrc this time.
                     84: make-tar-ball-3:
                     85:        if [ ! -f .make-tar-ball-3_done ]; then \
                     86:          rm -rf .TeXmacs ;\
                     87:          mkdir -p .TeXmacs/plugins/ox/progs ;\
                     88:          mkdir -p .TeXmacs/progs ;\
                     89:          cp ${TM_OX} .TeXmacs/plugins/ox/progs/init-ox.scm ;\
                     90:          touch .TeXmacs/progs/my-init-texmacs.scm ;\
                     91:          tar czvf work/ox-texmacs-${OS}-${VERSION}.tar.gz ./.TeXmacs  ;\
                     92:        fi
                     93:        touch .make-tar-ball-3_done
                     94:
                     95: copy-tar-ball-and-asir: make-tar-ball-2 make-tar-ball-3
1.1       takayama   96:        (cd work/OpenXM/src/asir-port ; make copy-for-knoppix)
                     97:        (cd work ;  ${RSYNC} "openxm-binary-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.5       takayama   98:        (cd work ;  ${RSYNC} "ox-texmacs-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.1       takayama   99:        (cp ../openxm*deb . ;  ${RSYNC} "openxm_${VERSION}_i386.deb" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
                    100:
                    101: clean: clean-tilde
                    102:        rm -rf debian/tmp build-stamp work .*done openxm*.deb
                    103: clean-tilde:
1.9     ! takayama  104:        rm -rf *~
        !           105:
        !           106: update-version:
        !           107:        oxreplace --old VERSION=1.2.3-8 --new VERSION=1.2.3-9 OpenXM/download/Makefile
        !           108:        oxreplace --old VERSION=1.2.3-8 --new VERSION=1.2.3-9 ../../../../src/asir-port/Makefile
        !           109:        echo "make commit under OpenXM/src/asir-port and here"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>