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

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

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