Allow bookes to be build individually but omitted from Bumper Booke.
This commit is contained in:
parent
5c0e97279a
commit
27070f9f05
22
makeAll.sh
22
makeAll.sh
|
@ -1,8 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Build all forms of the Booke.
|
# Build all forms of the Booke.
|
||||||
|
#
|
||||||
|
# Arguments are the names of the bookes to build. If a name is
|
||||||
|
# prefixed '-', then do not include that section in the Bumper Booke.
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [[ $# -lt 1 ]]; then
|
||||||
echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]"
|
echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -70,11 +73,24 @@ makeBumperBooke()
|
||||||
./makeBooklet.sh "Bumper"
|
./makeBooklet.sh "Bumper"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare buildBookes
|
||||||
|
declare bumperBookes
|
||||||
|
|
||||||
for booke in "$@"
|
for booke in "$@"
|
||||||
|
do
|
||||||
|
if [[ ${booke:0:1} = "-" ]]; then
|
||||||
|
booke=${booke/#-/}
|
||||||
|
else
|
||||||
|
bumperBookes+=("$booke")
|
||||||
|
fi
|
||||||
|
buildBookes+=("$booke")
|
||||||
|
done
|
||||||
|
|
||||||
|
for booke in "${buildBookes[@]}"
|
||||||
do
|
do
|
||||||
makeASingleBooke $booke
|
makeASingleBooke $booke
|
||||||
done
|
done
|
||||||
if [ $# -gt 1 ]; then
|
if [[ ${#bumperBookes[@]} -gt 1 ]]; then
|
||||||
makeBumperBooke "$@"
|
makeBumperBooke "${bumperBookes[@]}"
|
||||||
cp Bumper*.pdf ./web
|
cp Bumper*.pdf ./web
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue