Look up ${CUSTOMIZE} in ${.CURDIR} first, and then as a path name by itself,

assuming in the latter case that it is an absolute path name.
This commit is contained in:
Thomas Quinot 2004-05-28 21:16:14 +00:00
parent 6f8f915b4c
commit 5141d0dd23

View File

@ -31,7 +31,7 @@ WD?= ${.OBJDIR}/_.w
#
# The final resulting image is in ${.OBJDIR}/_.i and the single slice
# image in ${.OBJDIR}/_.i.s1
#
# Main target
all: buildworld installworld buildimage
@ -48,10 +48,10 @@ _.cs: _.iw _.di _.ik _.di
sed -i "" -e /beastie/d ${WD}/boot/loader.rc
sed -i "" -e /ttyd0/s/off/on/ ${WD}/etc/ttys
echo " -h" > ${WD}/boot.config
.elif exists(${CUSTOMIZE})
sh -e ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR}
.elif exists(${.CURDIR}/${CUSTOMIZE})
sh -e ${.CURDIR}/${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR}
.elif exists(${CUSTOMIZE})
sh -e ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR}
.else
echo "CUSTOMIZE script not found" 1>&2
false