1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Make it possible to specify a list of customize scripts.

Look for them in ./Customize first, then relative to . and then absolute.
This commit is contained in:
Poul-Henning Kamp 2004-11-28 17:12:15 +00:00
parent 08161b063c
commit bbece547ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138160

View File

@ -47,7 +47,7 @@ WD?= ${.OBJDIR}/_.w
# configuration slice.
#CFGMASTER?= ${.CURDIR}/cfgmaster
.for cust in CUSTOMIZE CFGMASTER
.for cust in CFGMASTER
.if !empty(${cust})
.if exists(${.CURDIR}/${${cust}})
${cust}_PATH= ${.CURDIR}/${${cust}}
@ -71,14 +71,15 @@ all: buildworld installworld buildimage
#
Customize: _.cs
_.cs: _.iw _.di _.ik _.di
.if empty(CUSTOMIZE_PATH)
# useful stuff for diskless boot
sed -i "" -e /beastie/d ${WD}/boot/loader.rc
sed -i "" -e /ttyd0/s/off/on/ ${WD}/etc/ttys
echo " -h" > ${WD}/boot.config
.for cust in ${CUSTOMIZE}
.if exists(${.CURDIR}/Customize/${${cust}})
sh -e ${.CURDIR}/Customize/${cust} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
.elif exists(${.CURDIR}/${${cust}})
sh -e ${.CURDIR}/${cust} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
.else
sh -e ${CUSTOMIZE_PATH} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
sh -e ${cust} ${WD} ${WORLDDIR} ${.CURDIR} ${CUSTOMIZE_ARGS}
.endif
.endfor
touch _.cs
###########################################################################