Annotation of OpenXM/misc/packages/Makefile, Revision 1.28
1.28 ! takayama 1: # $OpenXM: OpenXM/misc/packages/Makefile,v 1.27 2000/12/21 12:41:52 takayama Exp $
1.7 takayama 2:
1.24 takayama 3: VERSION=1.1.3
1.9 takayama 4: TAG=HEAD
1.24 takayama 5: ## TAG=RELEASE_1_1_3
1.9 takayama 6:
1.26 takayama 7: ### Configure below.
1.7 takayama 8: TAR_WORK=$(HOME)/tmp
9: NAME=taka
1.26 takayama 10: WHO=taka@orange
1.25 takayama 11: # It must be equal to TAR_WORK. To work as a super user. Used in build-on-pear-root.
1.7 takayama 12: TAR_WORK_EXPLICIT=/home/${NAME}/tmp
13: JDK=jdk1.1.8
1.10 takayama 14: FTP_AREA=/export/home01/ftp/pub/OpenXM/${VERSION}
1.26 takayama 15: FTP_AREA_HEAD=/export/home01/ftp/pub/OpenXM/Head
1.28 ! takayama 16: FTP_AREA_ASIR=/export/home01/ftp/pub/asir
1.27 takayama 17: RCVS=cvs-OpenXM -d kerberos.math.sci.kobe-u.ac.jp:/home/cvs
1.9 takayama 18: ## TAG for the CVS server.
1.7 takayama 19:
1.3 takayama 20: # Modify below for priting.
21: PS=a2ps-j
22: LPR=lpr -Pdousan
1.1 takayama 23:
24: usage :
1.3 takayama 25: @echo "Targets "
26: @echo " clean "
27: @echo " print "
1.8 takayama 28: @echo "Do not forget to put java and javac in your search path."
1.10 takayama 29: @echo "Put your rcvs script by the name cvs-OpenXM under your search path."
1.23 takayama 30: @echo "OpenXM must be under the home directory. Otherwise, input like make OpenXM_HOME=/hoge/hoge/OpenXM ..."
1.10 takayama 31: @echo " (See Generic/openxm/Makefile for details) "
1.7 takayama 32: @echo "1. generate-tar-balls"
33: @echo " (update-plist)"
1.23 takayama 34: @echo " (or generate-tar-balls-without-update-plist) "
1.25 takayama 35: @echo "2. build-on-new-orange (do not forget to set .rpmrc. See Linux/RPM/Makefile)"
36: @echo "3. build-on-pear-root (do it as a super user)"
1.7 takayama 37: @echo "4. build-on-redhat (do not forget to set .rpmrc)"
38: @echo "5. build-on-unkei"
39: @echo "6. copy-to-ftp-area "
1.26 takayama 40: @echo "7. copy-head-tar-ball-to-ftp-area "
1.28 ! takayama 41: @echo "8. copy-asir-head-tar-ball-to-ftp-area "
! 42: @echo "9. copy-asir-stable-tar-ball-to-ftp-area "
1.1 takayama 43:
44: clean :
1.5 takayama 45: -(cd Generic/openxm ; make clean-work)
1.1 takayama 46: -(cd FreeBSD ; make clean)
1.2 takayama 47: -(cd Linux/RPM ; make clean)
1.26 takayama 48: /bin/rm -rf work
1.4 takayama 49:
1.7 takayama 50: print:
1.13 takayama 51: $(PS) Makefile | $(LPR)
1.15 takayama 52: $(PS) README | $(LPR)
1.7 takayama 53: $(PS) Generic/openxm/Makefile | $(LPR)
54: $(PS) Linux/RPM/Makefile | $(LPR)
55: $(PS) Linux/RPM/openxm-*spec.in | $(LPR)
56: $(PS) FreeBSD/openxm-ports/openxm-1.1.2/Makefile | $(LPR)
1.9 takayama 57: $(PS) FreeBSD/Makefile | $(LPR)
1.7 takayama 58:
1.19 takayama 59: clean-Generic-openxm-work:
60: -(cd Generic/openxm ; make clean-work ; make fetch)
1.7 takayama 61:
1.4 takayama 62: generate-tar-balls:
1.7 takayama 63: -mkdir ${TAR_WORK}
1.4 takayama 64: make clean
1.9 takayama 65: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
1.13 takayama 66: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball-01)
1.7 takayama 67: make update-plist
1.9 takayama 68: (cd FreeBSD ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.2 takayama 69:
1.7 takayama 70: update-plist:
1.11 takayama 71: (cd FreeBSD ; make VERSION=${VERSION} TAG=${TAG} update-plist )
1.23 takayama 72:
73: generate-tar-balls-without-update-plist:
74: -mkdir ${TAR_WORK}
75: make clean
76: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball)
77: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} tar-ball-01)
78: (cd FreeBSD ; make TAG=${TAG} VERSION=${VERSION} make-tar-ball-for-openxm-port)
1.6 takayama 79:
1.17 takayama 80: prepare-build-rpm:
81: (cd Linux/RPM ; make make-directory)
82: (cd Linux/RPM ; make link-for-real-openxm)
83:
1.15 takayama 84: # set path=(/usr/local/jdk1.1.8/bin $path) ; rehash
1.25 takayama 85: # build-on-new-orange should depend on clean-Generic-openxm-work in a future.
86: build-on-new-orange: prepare-build-rpm
1.9 takayama 87: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
88: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} shared-tar-ball)
89: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} clean-work)
90: (cd Linux/RPM ; make TAG=${TAG} VERSION=${VERSION} build-shared-rpm)
1.22 takayama 91: -(cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
92: -(cp Linux/RPM/work/RPMS/noarch/*.rpm ${TAR_WORK})
1.7 takayama 93:
94: # You should be a super user.
1.25 takayama 95: build-on-pear-root:
1.7 takayama 96: cp ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tar.gz /usr/ports/distfiles
1.12 takayama 97: (cd /usr/ports/math ; /bin/rm -rf openxm ; tar xzvf ${TAR_WORK_EXPLICIT}/openxm-port.tar.gz)
98: (PATH=/usr/local/${JDK}/bin:$(PATH) ; export PATH ; cd /usr/ports/math/openxm ; make install ; make package ; make deinstall ; cp openxm-${VERSION}.tgz ${TAR_WORK_EXPLICIT} ; chown ${NAME} ${TAR_WORK_EXPLICIT}/openxm-${VERSION}.tgz)
1.7 takayama 99:
1.19 takayama 100: build-on-redhat: prepare-build-rpm clean-Generic-openxm-work
1.20 takayama 101: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} TAR_WORK=${TAR_WORK} tar-ball)
1.9 takayama 102: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} binary-tar-ball)
1.7 takayama 103: (cd Linux/RPM ; make build-binary-rpm)
104: (cp Linux/RPM/work/RPMS/i386/*.rpm ${TAR_WORK})
105:
1.15 takayama 106: # set path=(/usr/ccs/bin /usr/local/bin $path); rehash
1.18 takayama 107: # setenv OpenXM_HOME xxx-yyy
108: # (Note for taka). On unkei, cd Solaris/OpenXM/misc/packages,
109: # setenv OpenXM_HOME $HOME/Solaris/OpenXM
110: # and make OpenXM_HOME=$OpenXM_HOME build-on-unkei
1.19 takayama 111: build-on-unkei: clean-Generic-openxm-work
1.18 takayama 112: (cd Generic/openxm ; make TAG=${TAG} VERSION=${VERSION} OpenXM_HOME=${OpenXM_HOME} binary-tar-ball)
1.7 takayama 113:
114: copy-to-ftp-area:
115: -mkdir ${FTP_AREA}
1.25 takayama 116: -cp ${TAR_WORK}/openxm*rpm ${FTP_AREA}
117: -cp ${TAR_WORK}/openxm-${VERSION}.tar.gz ${FTP_AREA}
118: -cp ${TAR_WORK}/OpenXM-*.tgz ${FTP_AREA}
119: -cp ${TAR_WORK}/openxm-${VERSION}.tgz ${FTP_AREA}
120: -cp ${TAR_WORK}/openxm-port.tar.gz ${FTP_AREA}
1.7 takayama 121: ls -l ${FTP_AREA}
1.26 takayama 122:
123: copy-head-tar-ball-to-ftp-area:
124: -mkdir ${TAR_WORK}
125: -mkdir work
126: (cd work ; /bin/rm -rf *)
1.27 takayama 127: (cd work ; ${RCVS} checkout OpenXM OpenXM_contrib OpenXM_contrib2)
1.26 takayama 128: (cd work ; tar czvf ${TAR_WORK}/openxm-head.tar.gz OpenXM OpenXM_contrib OpenXM_contrib2)
129: /bin/rm -rf work
130: -scp ${TAR_WORK}/openxm-head.tar.gz ${WHO}:${FTP_AREA_HEAD}
1.28 ! takayama 131:
! 132: copy-asir-head-tar-ball-to-ftp-area:
! 133: -mkdir ${TAR_WORK}
! 134: -mkdir work
! 135: (cd work ; /bin/rm -rf *)
! 136: (cd work ; ${RCVS} export -rHEAD OpenXM_contrib/pari OpenXM_contrib2/asir2000)
! 137: (cd work/OpenXM_contrib ; tar czvf ${TAR_WORK}/pari.tar.gz pari)
! 138: (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-head.tar.gz asir2000)
! 139: /bin/rm -rf work
! 140: -scp ${TAR_WORK}/pari.tar.gz ${WHO}:${FTP_AREA_ASIR}
! 141: -scp ${TAR_WORK}/asir-head.tar.gz ${WHO}:${FTP_AREA_ASIR}
! 142:
! 143: copy-asir-stable-tar-ball-to-ftp-area:
! 144: -mkdir ${TAR_WORK}
! 145: -mkdir work
! 146: (cd work ; /bin/rm -rf *)
! 147: (cd work ; ${RCVS} export -rSTABLE_1_1_3 OpenXM_contrib2/asir2000)
! 148: (cd work/OpenXM_contrib2 ; tar czvf ${TAR_WORK}/asir-stable.tar.gz asir2000)
! 149: /bin/rm -rf work
! 150: -scp ${TAR_WORK}/asir-stable.tar.gz ${WHO}:${FTP_AREA_ASIR}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>