Skip to content

Commit 4e6a940

Browse files
committedAug 12, 2014
build.sh cleanup
1 parent a8668b6 commit 4e6a940

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎build.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
#!/bin/bash
22

3+
# Running `./build --clean` will delete unwanted files and exit
34
if [ "$1" == "--clean" ]; then
45
rm -f book.{aux,bbl,blg,log,out,toc}
56
exit
67
fi
78

8-
# If the book doesn't get built multiple times,
9-
# the ToC ends up missing information.
10-
9+
# If the book doesn't get built multiple times the ToC ends up missing information
1110
pdflatex book.tex
1211
bibtex book.aux
1312
pdflatex book.tex
1413
pdflatex book.tex
1514

1615
# Renames "book.pdf" to something like "Consumer-Centric API Design v0.2.1.pdf"
17-
1816
mv book.pdf Consumer-Centric\ API\ Design\ `git describe --abbrev=0`.pdf
1917

20-
# run `./build.sh --perserve` if you want to keep these files around
18+
# Deletes messy files unless `./build.sh --perserve` flag has been added
2119
if [ "$1" != "--preserve" ]; then
2220
rm -f book.{aux,bbl,blg,log,out,toc}
2321
fi

0 commit comments

Comments
 (0)
Please sign in to comment.