Add LOG_MKISOFS option to produce extra-verbose logs of the mkisofs image

generation info (-v -v).
This commit is contained in:
tv 2001-01-17 02:07:25 +00:00
parent 66689980ac
commit 5abeaaee6a
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2000/11/30 21:33:41 tv Exp $
# $NetBSD: Makefile,v 1.5 2001/01/17 02:07:25 tv Exp $
#
# Consult "*.conf" for the configuration variables; this Makefile is typically
# not edited for basic configuration changes.
@ -349,7 +349,11 @@ size-${image}: stage-${image} extfileprep fileprep-${image}
# Actually build the image with all the bootstrap goo....
${IMAGEDIR}/${image}.iso: fetch size-${image}
.if defined(LOG_MKISOFS)
cd ${STAGEDIR}/${image} && ${MKISOFS} -o $@ ${MKISOFS_ARGS} ${MKISOFS_ARGS.${image}} -v -v . >${IMAGEDIR}/${image}.iso.log 2>&1
.else
cd ${STAGEDIR}/${image} && ${MKISOFS} -o $@ ${MKISOFS_ARGS} ${MKISOFS_ARGS.${image}} .
.endif
.if !empty(SUN_BOOT_ARGS.${image})
${MKSUNBOOTCD} -c 640 $@ ${SUN_BOOT_ARGS.${image}}
.endif
@ -387,7 +391,7 @@ cleandir distclean: cleandistdir
cleanimages:
.for image in ${CD_IMAGES}
-rm -f ${IMAGEDIR}/${image}.iso
-rm -f ${IMAGEDIR}/${image}.iso ${IMAGEDIR}/${image}.iso.log
.endfor
cleanstagedir:

View File

@ -1,4 +1,4 @@
# $NetBSD: example.conf,v 1.3 2000/11/30 21:28:32 tv Exp $
# $NetBSD: example.conf,v 1.4 2001/01/17 02:07:25 tv Exp $
#
# Makefile fragment for CD sets; includes config information.
@ -128,6 +128,11 @@ USE_JOLIET= yes
USE_APPLE_ISO= yes
# LOG_MKISOFS causes the mkisofs command to be logged in "extra verbose"
# mode (-v -v) to the image filename with .log appended.
#LOG_MKISOFS= yes
##############################################################################
# "Easter egg" file. If this option is present, the standard 32k end padding
# is replaced by a message in this file (no more than 16k), padded to 32k