mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Very minor rework to eliminate useage of - operator by checking for
existance of ${CHROOTDIR}. Remove -k option from make install for building chroot tree, makes it error out early if you forgot to populate the pre-chroot obj tree. Reviewed by: phk
This commit is contained in:
parent
3ee2ce52b4
commit
682078bd09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8497
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.154 1995/05/11 07:11:24 jkh Exp $
|
||||
# $Id: Makefile,v 1.155 1995/05/11 07:18:11 jkh Exp $
|
||||
#
|
||||
# How to roll a release:
|
||||
#
|
||||
@ -62,12 +62,15 @@ release:
|
||||
.if !defined(CHROOTDIR) || !defined(BUILDNAME)
|
||||
@echo "To make a release you must set CHROOTDIR and BUILDNAME" && false
|
||||
.endif
|
||||
-mkdir ${CHROOTDIR}
|
||||
.if exists(${CHROOTDIR})
|
||||
chflags -R noschg ${CHROOTDIR}/.
|
||||
rm -rf ${CHROOTDIR}/*
|
||||
.else
|
||||
mkdir ${CHROOTDIR}
|
||||
.endif
|
||||
cd ${.CURDIR}/../etc ; ${MAKE} distrib-dirs DESTDIR=${CHROOTDIR}
|
||||
cd ${.CURDIR}/../etc ; ${MAKE} distribution DESTDIR=${CHROOTDIR}
|
||||
cd ${.CURDIR}/.. ; ${MAKE} -k install DESTDIR=${CHROOTDIR}
|
||||
cd ${.CURDIR}/.. ; ${MAKE} install DESTDIR=${CHROOTDIR}
|
||||
echo "#!/bin/sh" > ${CHROOTDIR}/mk
|
||||
echo "set -ex" >> ${CHROOTDIR}/mk
|
||||
echo "cd /usr/src" >> ${CHROOTDIR}/mk
|
||||
|
Loading…
Reference in New Issue
Block a user