Allow to find kernfs and chroot in any chapter

We use those files to generate code snippets to use in Makefile.
They used to be in chapter 6, but the new book will have some
of them in chapter 5.
This commit is contained in:
Pierre Labastie 2020-03-29 17:19:25 +00:00
parent 3261fe76c8
commit 04de9bc4db

View file

@ -281,7 +281,7 @@ create_chroot_scripts() { #
lfs)
xsltproc --nonet --xinclude \
-o chroot-scripts/ chroot.xsl \
$BOOK/chapter06/chapter06.xml >> $LOGDIR/$LOG 2>&1
$BOOK/chapter0?/*chroot*.xml >> $LOGDIR/$LOG 2>&1
;;
*)
esac
@ -312,7 +312,7 @@ create_kernfs_scripts() { #
lfs)
xsltproc --nonet \
-o kernfs-scripts/devices.sh kernfs.xsl \
$BOOK/chapter06/kernfs.xml >> $LOGDIR/$LOG 2>&1
$BOOK/*/kernfs.xml >> $LOGDIR/$LOG 2>&1
xsltproc --nonet \
-o kernfs-scripts/teardown.sh kernfs.xsl \
$BOOK/chapter09/reboot.xml >> $LOGDIR/$LOG 2>&1