Debian Codegraph @

yo/concrete/poly2/build

raw
1 #!/bin/bash
2
3 case "$1" in
4 (prog)
5 cd parser
6 bisonc++ --print-tokens grammar || exit 1
7 cd ../scanner
8 flexc++ lexer || exit 1
9 cd ..
10
11 g++ -Wall -opoly *.cc */*.cc -lbobcat || exit 1
12 echo "
13 ready; run the program as './poly < input'
14 "
15 ;;
16 (clean)
17 rm -f poly
18 cd parser
19 rm -f parse.cc parserbase.h
20 cd ../scanner
21 rm -f lex.cc scannerbase.h
22 echo "
23 done
24 "
25 ;;
26 (*)
27 echo "
28 usage: 'build prog' to build the program, 'build clean' to cleanup
29 "
30 exit 1
31 ;;
32 esac
33
34 exit 1
35
36
37