=================================================================== RCS file: /home/cvs/OpenXM/misc/packages/Linux/Debian2/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.47 diff -u -p -r1.1.1.1 -r1.47 --- OpenXM/misc/packages/Linux/Debian2/Makefile 2006/02/08 08:52:53 1.1.1.1 +++ OpenXM/misc/packages/Linux/Debian2/Makefile 2020/02/19 00:05:36 1.47 @@ -1,20 +1,30 @@ # Do source dot.bashrc before doing something. -VERSION=1.2.3-4 -# This VERSION must be compatible with debian/control ver. +VERSION=1.3.3-2 +# This VERSION must be compatible with debian/control and changelog ver. +# use "make update-version" to update these values. # OpenXM/download/Makefile # work/OpenXM/src/asir-port/Makefile +# (OpenXM/src/asir-port/Makefile) MD5=md5sum -OS=`uname -s` +OS=`dpkg --print-architecture` RSYNC=rsync -avz -e ssh -FTP_DIR=/home/ftp/pub/OpenXM/head/knoppix +#FTP_DIR=/home/web/pub/OpenXM/head/knoppix +FTP_DIR=/home/web/pub/OpenXM/head/knoppix +APT_DIR=/usr/local/www/data/MathLibre-`dpkg --print-architecture` +TM_OX=work/OpenXM/src/kxx/init-openxm.scm -build-package: fetch make-tar-ball-2 +build-package: fetch make-tar-ball-2 make-tar-ball-3 fakeroot debian/rules build fakeroot debian/rules install fakeroot dpkg-buildpackage +build-deb: + fakeroot debian/rules build + fakeroot debian/rules install + fakeroot dpkg-buildpackage + fetch: if [ ! -f .fetch_done ]; then \ rm -rf work ; \ @@ -58,11 +68,20 @@ BINARY_FILES=d0 fep k0 ox ox100start ox_k0 ox_sm1 ox_t EXCLUDE_FILES=--exclude CVS --exclude .keep_me \ --exclude-from ../exclude-files.txt FILES=OpenXM/Copyright OpenXM/bin OpenXM/include \ - OpenXM/lib OpenXM/man OpenXM/rc + OpenXM/lib OpenXM/man OpenXM/rc \ + OpenXM/doc/asir-contrib \ + OpenXM/doc/kan96xx \ + OpenXM/doc/asir2000 \ + OpenXM/doc/ox_toolkit \ + OpenXM/doc/oxlib \ + OpenXM/doc/OpenXM-specs \ + OpenXM/doc/index \ + OpenXM/share make-tar-ball-2: make-tar-ball-1 if [ ! -f .make-tar-ball-2_done ]; then \ (cd work/OpenXM/bin ; for i in ${BINARY_FILES} ; do strip $$i ; done ) ;\ + (cd work/OpenXM/rc ; make clean ) ;\ (cd work; tar czvf openxm-binary-${OS}-${VERSION}.tar.gz ${EXCLUDE_FILES} ${FILES}) ; \ (cd work ; ${MD5} "openxm-binary-${OS}-${VERSION}.tar.gz" | awk '{print $$1}' >distinfo-openxm-binary.md5) ;\ (cp work/distinfo-openxm-binary.md5 OpenXM/download) ; \ @@ -70,12 +89,36 @@ make-tar-ball-2: make-tar-ball-1 fi touch .make-tar-ball-2_done -copy-tar-ball-and-asir: make-tar-ball-2 +##cf.misc-2004/A2/knoppix-2005/Makefile. There is no fix on .asirrc this time. +make-tar-ball-3: + if [ ! -f .make-tar-ball-3_done ]; then \ + rm -rf .TeXmacs ;\ + mkdir -p .TeXmacs/plugins/ox/progs ;\ + mkdir -p .TeXmacs/progs ;\ + mkdir -p .emacs.d ;\ + cp ${TM_OX} .TeXmacs/plugins/ox/progs/init-ox.scm ;\ + touch .TeXmacs/progs/my-init-texmacs.scm ;\ + cp work/OpenXM_contrib2/fep/feprc.sample .feprc.sample ;\ + cp work/OpenXM_contrib2/windows/post-msg-asirgui/asir-mode.el .emacs.d ;\ + tar czvf work/ox-texmacs-${OS}-${VERSION}.tar.gz ./.TeXmacs ./.feprc.sample ./.emacs.d ;\ + fi + touch .make-tar-ball-3_done + +copy-tar-ball-and-asir: make-tar-ball-2 make-tar-ball-3 (cd work/OpenXM/src/asir-port ; make copy-for-knoppix) (cd work ; ${RSYNC} "openxm-binary-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR}) - (cp ../openxm*deb . ; ${RSYNC} "openxm_${VERSION}_i386.deb" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR}) + (cd work ; ${RSYNC} "ox-texmacs-${OS}-${VERSION}.tar.gz" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR}) + (cp ../openxm*deb . ; ${RSYNC} "openxm_${VERSION}_${OS}.deb" ${USER}@lemon.math.kobe-u.ac.jp:${FTP_DIR}) + (cp ../openxm*deb . ; ${RSYNC} "openxm_${VERSION}_${OS}.deb" ${USER}@fe.math.kobe-u.ac.jp:${APT_DIR}) + (cp ../openxm*dsc . ; ${RSYNC} "openxm_${VERSION}.dsc" ${USER}@fe.math.kobe-u.ac.jp:${APT_DIR}) + (cp ../openxm*changes . ; ${RSYNC} "openxm_${VERSION}_${OS}.changes" ${USER}@fe.math.kobe-u.ac.jp:${APT_DIR}) clean: clean-tilde rm -rf debian/tmp build-stamp work .*done openxm*.deb clean-tilde: - rm -rf *~ \ No newline at end of file + rm -rf *~ + +update-version: + ../../../../bin/oxreplace --old VERSION=1.3.3-1 --new VERSION=1.3.3-2 OpenXM/download/Makefile + ../../../../bin/oxreplace --old VERSION=1.3.3-1 --new VERSION=1.3.3-2 ../../../../src/asir-port/Makefile + echo "make commit under OpenXM/src/asir-port and here"