Changeset 6f74ca1 for LFS


Ignore:
Timestamp:
07/10/2020 01:29:15 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
7e9e66f
Parents:
8b85dae
Message:

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*.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r8b85dae r6f74ca1  
    243243  # We need to know the chapter numbering, which depends on the version
    244244  # of the book. Use the number of subdirs to know which version we have
    245   chaps=($(echo *))
     245  chaps=($(echo chapter*))
    246246  nb_chaps=${#chaps[*]} # 5 if classical version, 7 if new version
    247247# DEBUG
Note: See TracChangeset for help on using the changeset viewer.