Gamma and other image manipulation commands
[TeXnicard.git] / compile
blob9c2e9cd1b4adddf13da5610e96efc6f27a4a2aa2
1 #!/usr/bin/env bash
2 # Type -g to compile with debug
3 # For production book, use -n option to cweave (omit line numbers)
4 cweave +s texnicard;tex texnicard
5 [ $# -eq 2 ] || ctangle +s texnicard
6 echo ------
7 [ $# -eq 2 ] || gcc -std=gnu89 -Winline -Wundef -Wfloat-equal \
8 -Wunused-function -Wno-long-long -Wno-parentheses \
9 -Werror=strict-prototypes -Wno-unused-value \
10 $1 `(exit $#)&&echo -s -O2 -fwhole-program -Wuninitialized` \
11 -o texnicard texnicard.c lodepng/lodepng.o