Fixed @I
[TeXnicard.git] / compile
blob0ce415c83419a3956dc59c5afb69e0bff9b376ed
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 texnicard;tex texnicard
5 [ $# -eq 2 ] || ctangle 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