LFS/master.sh: only count chapter* dirs in lfs-commands

We count the number of files in lfs-commands to know whether
we have an old or a new book. But this shouldn't include the
custom-tools dir, so only count chapter*.
This commit is contained in:
Pierre Labastie 2020-07-10 13:29:15 +00:00
parent 8b85dae454
commit 6f74ca146f

View file

@ -242,7 +242,7 @@ build_Makefile() { #
# We need to know the chapter numbering, which depends on the version # We need to know the chapter numbering, which depends on the version
# of the book. Use the number of subdirs to know which version we have # of the book. Use the number of subdirs to know which version we have
chaps=($(echo *)) chaps=($(echo chapter*))
nb_chaps=${#chaps[*]} # 5 if classical version, 7 if new version nb_chaps=${#chaps[*]} # 5 if classical version, 7 if new version
# DEBUG # DEBUG
# echo chaps: ${chaps[*]} # echo chaps: ${chaps[*]}