[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.7

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

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