Makefile (7450) | Makefile (7651) |
---|---|
1# $Id: Makefile,v 1.126 1995/03/28 18:14:03 phk Exp $ | 1# $Id: Makefile,v 1.127 1995/03/28 19:28:32 phk Exp $ |
2# 3# How to roll a release: 4# 5# make release CHROOTDIR=<lots of disk> [ RELEASETAG=something ] 6# 7# As far as I know, this will roll everything nicely into the "stage" 8# directory. I still need to write the two rules to move that into 9# the "cdrom" and "ftp" directories. --- 59 unchanged lines hidden (view full) --- 69 echo "make obj" >> ${CHROOTDIR}/mk 70 echo "make doRELEASE" >> ${CHROOTDIR}/mk 71 echo "RELEASEDIR=/R" >> ${CHROOTDIR}/etc/make.conf 72.if !defined(RELEASETAG) 73 cd ${CHROOTDIR}/usr ; cvs co -P src 74.else 75 cd ${CHROOTDIR}/usr ; cvs export -r ${RELEASETAG} src 76.endif | 2# 3# How to roll a release: 4# 5# make release CHROOTDIR=<lots of disk> [ RELEASETAG=something ] 6# 7# As far as I know, this will roll everything nicely into the "stage" 8# directory. I still need to write the two rules to move that into 9# the "cdrom" and "ftp" directories. --- 59 unchanged lines hidden (view full) --- 69 echo "make obj" >> ${CHROOTDIR}/mk 70 echo "make doRELEASE" >> ${CHROOTDIR}/mk 71 echo "RELEASEDIR=/R" >> ${CHROOTDIR}/etc/make.conf 72.if !defined(RELEASETAG) 73 cd ${CHROOTDIR}/usr ; cvs co -P src 74.else 75 cd ${CHROOTDIR}/usr ; cvs export -r ${RELEASETAG} src 76.endif |
77 # To be used in development... 78 #find ${.CURDIR} -print | cpio -dumpv ${CHROOTDIR} |
|
77 chmod 755 ${CHROOTDIR}/mk 78 chroot ${CHROOTDIR} /mk 79 80clean: 81 rm -rf cpio_crunch boot_crunch release.[0-9] release.1[0] 82 83# Clean out ${RELEASEDIR} and make the directory structure. 84release.1: --- 117 unchanged lines hidden (view full) --- 202 ${RD}/trees/dict/usr/share/dict ;\ 203 fi 204 for i in airport birthtoken flowers na.phone zipcodes ; do \ 205 if [ -f ${RD}/trees/bin/usr/share/misc/$$i ] ; then \ 206 mv ${RD}/trees/bin/usr/share/misc/$$i \ 207 ${RD}/trees/dict/usr/share/misc ; \ 208 fi ; \ 209 done | 79 chmod 755 ${CHROOTDIR}/mk 80 chroot ${CHROOTDIR} /mk 81 82clean: 83 rm -rf cpio_crunch boot_crunch release.[0-9] release.1[0] 84 85# Clean out ${RELEASEDIR} and make the directory structure. 86release.1: --- 117 unchanged lines hidden (view full) --- 204 ${RD}/trees/dict/usr/share/dict ;\ 205 fi 206 for i in airport birthtoken flowers na.phone zipcodes ; do \ 207 if [ -f ${RD}/trees/bin/usr/share/misc/$$i ] ; then \ 208 mv ${RD}/trees/bin/usr/share/misc/$$i \ 209 ${RD}/trees/dict/usr/share/misc ; \ 210 fi ; \ 211 done |
210 mv ${RD}/trees/bin/usr/share/info/* \ | 212 -mv ${RD}/trees/bin/usr/share/info/* \ |
211 ${RD}/trees/info/usr/share/info 212 for i in ${RD}/trees/bin/usr/lib/*_p.a ; do \ 213 if [ -f $$i ] ; then \ 214 mv $$i \ 215 ${RD}/trees/proflibs/usr/lib ; \ 216 fi ; \ 217 done | 213 ${RD}/trees/info/usr/share/info 214 for i in ${RD}/trees/bin/usr/lib/*_p.a ; do \ 215 if [ -f $$i ] ; then \ 216 mv $$i \ 217 ${RD}/trees/proflibs/usr/lib ; \ 218 fi ; \ 219 done |
218 cd ${RD}/usr/share/misc && rm -f termcap.db vgrindefs.db | 220 cd ${RD}/trees/bin/usr/share/misc && rm -f termcap.db vgrindefs.db |
219 -cd ${RD}/trees ; \ 220 find bin ${EXPORT_DISTS} -depth -type d -print | xargs rmdir 221 222 touch release.5 223 224# Complete the bootfd 225release.6: 226 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR --- 29 unchanged lines hidden (view full) --- 256 cp ${RD}/trees/bin/usr/sbin/tzsetup ${RD}/cpiofd/stand 257 ( cd ${RD}/cpiofd ; \ 258 ( rm -f OK ; find . -print ; touch OK ; echo OK ) | \ 259 cpio -H newc -oa | gzip -9 -c | dd conv=osync ) \ 260 > ${RD}/floppies/cpio.flp 261 gzip -1 -c < ${RD}/floppies/cpio.flp > ${RD}/floppies/cpio.flp.gz 262 touch release.7 263 | 221 -cd ${RD}/trees ; \ 222 find bin ${EXPORT_DISTS} -depth -type d -print | xargs rmdir 223 224 touch release.5 225 226# Complete the bootfd 227release.6: 228 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR --- 29 unchanged lines hidden (view full) --- 258 cp ${RD}/trees/bin/usr/sbin/tzsetup ${RD}/cpiofd/stand 259 ( cd ${RD}/cpiofd ; \ 260 ( rm -f OK ; find . -print ; touch OK ; echo OK ) | \ 261 cpio -H newc -oa | gzip -9 -c | dd conv=osync ) \ 262 > ${RD}/floppies/cpio.flp 263 gzip -1 -c < ${RD}/floppies/cpio.flp > ${RD}/floppies/cpio.flp.gz 264 touch release.7 265 |
264# Make binary dists | 266# Make binary dists, notice that secure dist isn't done yet. |
265release.8: 266 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 267 rm -rf ${RD}/dists 268 mkdir -p ${RD}/dists 269 @for i in ${DISTRIBUTIONS} ; \ 270 do \ 271 if [ -d ${RD}/trees/$${i} ] ; then \ 272 cd ${.CURDIR} ; \ --- 8 unchanged lines hidden (view full) --- 281 done 282 touch release.8 283 284 285# Make source dists 286release.9: 287 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 288 @cd ${.CURDIR} ; $(MAKE) doTARBALL SD=/usr/src \ | 267release.8: 268 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 269 rm -rf ${RD}/dists 270 mkdir -p ${RD}/dists 271 @for i in ${DISTRIBUTIONS} ; \ 272 do \ 273 if [ -d ${RD}/trees/$${i} ] ; then \ 274 cd ${.CURDIR} ; \ --- 8 unchanged lines hidden (view full) --- 283 done 284 touch release.8 285 286 287# Make source dists 288release.9: 289 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 290 @cd ${.CURDIR} ; $(MAKE) doTARBALL SD=/usr/src \ |
289 TD=src TN=srcbase ARG="[A-Z]*" 290 @for i in `cd /usr/src ; echo *` ; do \ | 291 TD=src TN=sbase ARG="[A-Z]*" 292 @for i in `cd /usr/src ; echo [a-z]*` ; do \ |
291 if [ -d /usr/src/$$i -a "$$i" != "CVS" ] ; then \ 292 cd ${.CURDIR} ; \ 293 $(MAKE) doTARBALL SD=/usr/src \ | 293 if [ -d /usr/src/$$i -a "$$i" != "CVS" ] ; then \ 294 cd ${.CURDIR} ; \ 295 $(MAKE) doTARBALL SD=/usr/src \ |
294 TN=`echo src$$i | tr -d '.' | sed 's/usr/u/'` \ | 296 TN=`echo s$$i | tr -d '.' | sed 's/usr/u/'` \ |
295 TD=src ARG="$$i" ; \ 296 fi ; \ 297 done | 297 TD=src ARG="$$i" ; \ 298 fi ; \ 299 done |
298 ( cd ${RD}/dists/src; \ 299 sh -e ${.CURDIR}/scripts/mkchecksums.sh ) ; \ 300 cp ${.CURDIR}/scripts/extract_src.sh \ 301 ${RD}/dists/src/extract.sh;\ 302 echo "src distribution is finished."; \ | 300 ( cd ${RD}/dists/src && \ 301 if [ -f ssecure.aa ] ; then mv ssecure.* ../secure ; fi && \ 302 if [ -f sebones.aa ] ; then mv sebones.* ../secure ; fi && \ 303 sh -e ${.CURDIR}/scripts/mkchecksums.sh ) 304 cp ${.CURDIR}/scripts/extract_src.sh ${RD}/dists/src/extract.sh 305 ( cd ${RD}/dists/secure && sh -e ${.CURDIR}/scripts/mkchecksums.sh ) 306 @echo "src distribution is finished." |
303 touch release.9 304 305# Complete the fixitfd 306release.10: 307 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 308 ( cd ${RD}/trees/bin/dev ; \ 309 ls console tty ttyv1 null zero \ 310 sd[0123][a-h] wd[0123][a-h] fd[01] \ --- 40 unchanged lines hidden (view full) --- 351.if !defined(TD) 352 @echo "TB undefined in doTARBALL" ; exit 1 353.endif 354.if !defined(ARG) 355 @echo "ARG undefined in doTARBALL" ; exit 1 356.endif 357 rm -rf ${RD}/dists/${TD}/${TN}* 358 mkdir -p ${RD}/dists/${TD} | 307 touch release.9 308 309# Complete the fixitfd 310release.10: 311 @cd ${.CURDIR} ; $(MAKE) ckRELEASEDIR 312 ( cd ${RD}/trees/bin/dev ; \ 313 ls console tty ttyv1 null zero \ 314 sd[0123][a-h] wd[0123][a-h] fd[01] \ --- 40 unchanged lines hidden (view full) --- 355.if !defined(TD) 356 @echo "TB undefined in doTARBALL" ; exit 1 357.endif 358.if !defined(ARG) 359 @echo "ARG undefined in doTARBALL" ; exit 1 360.endif 361 rm -rf ${RD}/dists/${TD}/${TN}* 362 mkdir -p ${RD}/dists/${TD} |
359 ( cd ${SD} ; \ 360 echo rolling ${TD}/${TN} tarball ;\ | 363 ( cd ${SD} && \ 364 tn=`echo ${TN} | tr '[A-Z]' '[a-z]' | cut -c1-8` && \ 365 echo rolling ${TD}/$$tn tarball &&\ |
361 tar --exclude CVS --exclude obj -cf - ${ARG} | \ | 366 tar --exclude CVS --exclude obj -cf - ${ARG} | \ |
362 ${ZIPNSPLIT} ${RD}/dists/${TD}/${TN}. ) | 367 ${ZIPNSPLIT} ${RD}/dists/${TD}/$$tn. ) |
363 364doRELEASE: release.1 release.2 release.3 release.4 release.5 release.6 \ 365 release.7 release.8 release.9 release.10 366 @echo "Release done" 367 368ckRELEASEDIR: 369.if !defined(RELEASEDIR) 370 @echo "To make a release RELEASEDIR must be defined" && false --- 49 unchanged lines hidden --- | 368 369doRELEASE: release.1 release.2 release.3 release.4 release.5 release.6 \ 370 release.7 release.8 release.9 release.10 371 @echo "Release done" 372 373ckRELEASEDIR: 374.if !defined(RELEASEDIR) 375 @echo "To make a release RELEASEDIR must be defined" && false --- 49 unchanged lines hidden --- |