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

1.1       takayama    1: # Do source dot.bashrc before doing something.
                      2:
1.31    ! takayama    3: VERSION=1.3.1-8
1.22      takayama    4: # This VERSION must be compatible with debian/control and changelog 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
1.25      takayama   11: OS=`dpkg --print-architecture`
1.1       takayama   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.28      takayama   15: APT_DIR=/usr/local/www/data/KnoppixMath-`dpkg --print-architecture`
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.12      takayama   21:        fakeroot dpkg-buildpackage
1.2       takayama   22:
                     23: build-deb:
1.1       takayama   24:        fakeroot debian/rules build
                     25:        fakeroot debian/rules install
1.12      takayama   26:        fakeroot dpkg-buildpackage
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 \
1.16      takayama   77:       OpenXM/doc/OpenXM-specs \
1.17      takayama   78:       OpenXM/doc/index \
                     79:       OpenXM/share
1.1       takayama   80:
                     81: make-tar-ball-2: make-tar-ball-1
                     82:        if [ ! -f .make-tar-ball-2_done ]; then \
                     83:          (cd work/OpenXM/bin ; for i in ${BINARY_FILES} ; do strip $$i ; done ) ;\
1.4       takayama   84:          (cd work/OpenXM/rc ; make clean ) ;\
1.1       takayama   85:          (cd work; tar czvf openxm-binary-${OS}-${VERSION}.tar.gz ${EXCLUDE_FILES} ${FILES}) ; \
                     86:          (cd work ; ${MD5} "openxm-binary-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-openxm-binary.md5) ;\
                     87:          (cp work/distinfo-openxm-binary.md5 OpenXM/download) ; \
                     88:          (cp work/OpenXM/lib/version.txt OpenXM/download) ; \
                     89:        fi
                     90:        touch .make-tar-ball-2_done
                     91:
1.5       takayama   92: ##cf.misc-2004/A2/knoppix-2005/Makefile. There is no fix on .asirrc this time.
                     93: make-tar-ball-3:
                     94:        if [ ! -f .make-tar-ball-3_done ]; then \
                     95:          rm -rf .TeXmacs ;\
                     96:          mkdir -p .TeXmacs/plugins/ox/progs ;\
                     97:          mkdir -p .TeXmacs/progs ;\
                     98:          cp ${TM_OX} .TeXmacs/plugins/ox/progs/init-ox.scm ;\
                     99:          touch .TeXmacs/progs/my-init-texmacs.scm ;\
1.19      takayama  100:          cp work/OpenXM_contrib2/fep/feprc.sample .feprc.sample ;\
                    101:          tar czvf work/ox-texmacs-${OS}-${VERSION}.tar.gz ./.TeXmacs ./.feprc.sample ;\
1.5       takayama  102:        fi
                    103:        touch .make-tar-ball-3_done
                    104:
                    105: copy-tar-ball-and-asir: make-tar-ball-2 make-tar-ball-3
1.1       takayama  106:        (cd work/OpenXM/src/asir-port ; make copy-for-knoppix)
                    107:        (cd work ;  ${RSYNC} "openxm-binary-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.5       takayama  108:        (cd work ;  ${RSYNC} "ox-texmacs-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
1.27      takayama  109:        (cp ../openxm*deb . ;  ${RSYNC} "openxm_${VERSION}_${OS}.deb" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR})
                    110:        (cp ../openxm*deb . ;  ${RSYNC} "openxm_${VERSION}_${OS}.deb" ${USER}@fe.math.kobe-u.ac.jp:${APT_DIR})
1.13      takayama  111:        (cp ../openxm*dsc . ;  ${RSYNC} "openxm_${VERSION}.dsc" ${USER}@fe.math.kobe-u.ac.jp:${APT_DIR})
1.27      takayama  112:        (cp ../openxm*changes . ;  ${RSYNC} "openxm_${VERSION}_${OS}.changes" ${USER}@fe.math.kobe-u.ac.jp:${APT_DIR})
1.1       takayama  113:
                    114: clean: clean-tilde
                    115:        rm -rf debian/tmp build-stamp work .*done openxm*.deb
                    116: clean-tilde:
1.9       takayama  117:        rm -rf *~
                    118:
                    119: update-version:
1.31    ! takayama  120:        ../../../../bin/oxreplace --old VERSION=1.3.1-7 --new VERSION=1.3.1-8 OpenXM/download/Makefile
        !           121:        ../../../../bin/oxreplace --old VERSION=1.3.1-7 --new VERSION=1.3.1-8 ../../../../src/asir-port/Makefile
1.11      takayama  122:        echo "make commit under OpenXM/src/asir-port and here"

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