aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rwxr-xr-xproject14
1 files changed, 8 insertions, 6 deletions
diff --git a/project b/project
index e53bcf0..33564f8 100755
--- a/project
+++ b/project
@@ -36,7 +36,6 @@ host_cc=0
operation=
build_dir=
input_dir=
-noappendix=0
check_config=
make_targets=
software_dir=
@@ -46,6 +45,7 @@ highlightnew=0
all_highlevel=0
existing_conf=0
highlightnotes=0
+separatesupplement=0
scriptname="./project"
minmapsize=10000000000
@@ -92,6 +92,7 @@ Project 'make' special features.
./project make Build the project on one thread
./project make -jN Built the project in parallel on N threads.
./project make clean Clean all files generated by 'make' (not software).
+ ./project make texclean Clean all files built by (La)TeX.
./project make distclean Clean everything (including compiled software).
./project make dist Produce a LaTeX-ready-to-build distribution tarball
('tar.gz') of the project. This is ready to be
@@ -128,7 +129,7 @@ Make (analysis) options:
Make (final PDF) options:
--highlight-new Highlight '\new' parts of text as green.
--highlight-notes Show '\tonote' regions as red text in PDF.
- --no-appendix Don't include the appendix in the final paper.
+ --supplement Build the appendices as a separate supplement PDF.
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
@@ -213,8 +214,8 @@ do
#
# Note that Make's `debug' can take values, but when called without any
# value, it is like giving it a value of `a'):
- --no-appendix) noappendix=1; shift;;
- --no-appendix=*) on_off_option_error --no-appendix;;
+ --supplement) separatesupplement=1; shift;;
+ --supplement=*) on_off_option_error --supplement;;
--highlight-new) highlightnew=1; shift;;
--highlight-new=*) on_off_option_error --highlight-new;;
--highlight-notes) highlightnotes=1; shift;;
@@ -384,7 +385,8 @@ controlled_env() {
# Remove all existing environment variables (with `env -i') and only
# use some pre-defined environment variables, then build the project.
envmake=".local/bin/env -i HOME=$bdir sys_rm=$(which rm) $gopt"
- envmake="$envmake noappendix=$noappendix highlightnew=$highlightnew"
+ envmake="$envmake separatesupplement=$separatesupplement "
+ envmake="$envmake highlightnew=$highlightnew"
envmake="$envmake highlightnotes=$highlightnotes .local/bin/make "
envmake="$envmake --no-builtin-rules --no-builtin-variables -f $1"
if ! [ x"$debug" = x ]; then envmake="$envmake --debug=$debug"; fi
@@ -507,7 +509,7 @@ case $operation in
numwords=$(pdftotext paper.pdf && cat paper.txt | wc -w)
numeff=$(echo $numwords | awk '{print $1-850+500}')
echo; echo "Number of words in full PDF: $numwords"
- if [ $noappendix = 1 ]; then
+ if [ $separatesupplement = 1 ]; then
echo "No abstract, and captions (250 for each figure): $numeff"
fi
rm paper.txt