Makefile.sysinstall (146511) | Makefile.sysinstall (147425) |
---|---|
1# $FreeBSD: head/release/Makefile 146511 2005-05-23 03:14:56Z grehan $ | 1# $FreeBSD: head/release/Makefile 147425 2005-06-16 18:16:14Z ru $ |
2# 3# make release [BUILDNAME=somename] CHROOTDIR=/some/dir CVSROOT=/cvs/dir \ 4# [RELEASETAG=tag] 5# 6# Where "/some/dir" is the pathname of a directory on a some filesystem with 7# at least 1000MB of free space, "somename" is what you want the release to 8# call itself, "/cvs/dir" is where our source repo resides and, optionally, 9# which CVS "tag" name should be used when checking out the sources to build --- 147 unchanged lines hidden (view full) --- 157.if !defined(NODOC) 158DIST_DOCS_ARCH_INDEP= readme errata 159DIST_DOCS_ARCH_DEP= installation relnotes hardware 160.endif 161 162# Things which without too much trouble can be considered variables 163# BASE_DISTS are special in that they get full /etc installation sets. 164# | 2# 3# make release [BUILDNAME=somename] CHROOTDIR=/some/dir CVSROOT=/cvs/dir \ 4# [RELEASETAG=tag] 5# 6# Where "/some/dir" is the pathname of a directory on a some filesystem with 7# at least 1000MB of free space, "somename" is what you want the release to 8# call itself, "/cvs/dir" is where our source repo resides and, optionally, 9# which CVS "tag" name should be used when checking out the sources to build --- 147 unchanged lines hidden (view full) --- 157.if !defined(NODOC) 158DIST_DOCS_ARCH_INDEP= readme errata 159DIST_DOCS_ARCH_DEP= installation relnotes hardware 160.endif 161 162# Things which without too much trouble can be considered variables 163# BASE_DISTS are special in that they get full /etc installation sets. 164# |
165OTHER_DISTS?= catpages manpages games proflibs dict info doc | 165OTHER_DISTS?= catpages manpages games proflibs dict info doc ${ARCH_DISTS} |
166BASE_DISTS?= base | 166BASE_DISTS?= base |
167.if ${TARGET_ARCH} == "amd64" 168ARCH_DISTS?= lib32 169.endif |
|
167DISTRIBUTIONS?= ${BASE_DISTS} ${OTHER_DISTS} 168 169# mountpoint for filesystems. 170MNT= /mnt 171 172# Various floppy image parameters. 173# 174 --- 171 unchanged lines hidden (view full) --- 346 # NB: clear any vestigial devfs mount, just in case 347 -umount ${CHROOTDIR}/dev > /dev/null 2>&1 348 -rm -rf ${CHROOTDIR} 2>/dev/null 349 -chflags -R 0 ${CHROOTDIR}/. 350 -rm -rf ${CHROOTDIR} 351.endif 352 mkdir -p ${CHROOTDIR} 353 @echo ">>> make release for ${TARGET} started on `LC_ALL=C TZ=GMT date`" | 170DISTRIBUTIONS?= ${BASE_DISTS} ${OTHER_DISTS} 171 172# mountpoint for filesystems. 173MNT= /mnt 174 175# Various floppy image parameters. 176# 177 --- 171 unchanged lines hidden (view full) --- 349 # NB: clear any vestigial devfs mount, just in case 350 -umount ${CHROOTDIR}/dev > /dev/null 2>&1 351 -rm -rf ${CHROOTDIR} 2>/dev/null 352 -chflags -R 0 ${CHROOTDIR}/. 353 -rm -rf ${CHROOTDIR} 354.endif 355 mkdir -p ${CHROOTDIR} 356 @echo ">>> make release for ${TARGET} started on `LC_ALL=C TZ=GMT date`" |
354 cd ${WORLDDIR} && ${NATIVEMAKE} -DNO_GAMES -DNO_HTML -DNO_INFO -DNO_MAN \ 355 -DNO_NLS -DNO_PROFILE installworld DESTDIR=${CHROOTDIR} | 357 cd ${WORLDDIR} && ${NATIVEMAKE} -DNO_GAMES -DNO_HTML -DNO_INFO \ 358 -DNO_LIB32 -DNO_MAN -DNO_NLS -DNO_PROFILE installworld \ 359 DESTDIR=${CHROOTDIR} |
356 cd ${WORLDDIR} && ${NATIVEMAKE} distribution DESTDIR=${CHROOTDIR} 357 if [ -f /etc/resolv.conf ]; then \ 358 cp -p /etc/resolv.conf ${CHROOTDIR}/etc; \ 359 fi 360.if defined(EXTLOCALDIR) 361 rm -rf ${CHROOTDIR}/usr/local 362 cd ${CHROOTDIR}/usr && cp -R -H ${EXTLOCALDIR} local 363.endif --- 254 unchanged lines hidden (view full) --- 618 echo -n "Running $$i dist creation script... "; \ 619 env RD=${RD} sh ${.CURDIR}/scripts/$${i}-make.sh || echo "$$i distribution script returned bad status."; \ 620 echo "Done."; \ 621 fi \ 622 done \ 623 624 # Remove all the directories we don't need. 625 -cd ${RD}/trees && \ | 360 cd ${WORLDDIR} && ${NATIVEMAKE} distribution DESTDIR=${CHROOTDIR} 361 if [ -f /etc/resolv.conf ]; then \ 362 cp -p /etc/resolv.conf ${CHROOTDIR}/etc; \ 363 fi 364.if defined(EXTLOCALDIR) 365 rm -rf ${CHROOTDIR}/usr/local 366 cd ${CHROOTDIR}/usr && cp -R -H ${EXTLOCALDIR} local 367.endif --- 254 unchanged lines hidden (view full) --- 622 echo -n "Running $$i dist creation script... "; \ 623 env RD=${RD} sh ${.CURDIR}/scripts/$${i}-make.sh || echo "$$i distribution script returned bad status."; \ 624 echo "Done."; \ 625 fi \ 626 done \ 627 628 # Remove all the directories we don't need. 629 -cd ${RD}/trees && \ |
626 find ${OTHER_DISTS} -depth -type d -print | xargs rmdir | 630 (find ${OTHER_DISTS} -path '*/var/empty' | xargs chflags noschg; \ 631 find ${OTHER_DISTS} -depth -type d -print | xargs rmdir) |
627 touch ${.TARGET} 628 629# 630# --==## Package up the tarballs from assembled trees ##==-- 631# 632release.6: 633 rm -rf ${RD}/dists 634 mkdir -p ${RD}/dists --- 645 unchanged lines hidden --- | 632 touch ${.TARGET} 633 634# 635# --==## Package up the tarballs from assembled trees ##==-- 636# 637release.6: 638 rm -rf ${RD}/dists 639 mkdir -p ${RD}/dists --- 645 unchanged lines hidden --- |