fieker-DuValspielwiese
Last change
on this file since bdfe704 was
2404ab7,
checked in by Hans Schoenemann <hannes@…>, 8 years ago
|
add: reminder how to produce scanner.cc/libparse.cc - should not be used by make
|
-
Property mode set to
100644
|
File size:
677 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # this is a simple reminder how to produce scanner.cc and libparse.cc: |
---|
3 | # too many changes of flex (much more than to scanner.l/libparse.l) |
---|
4 | # and tired of porting: |
---|
5 | # we require flex version 2.4.5...2.5.4 |
---|
6 | flex254 -B -Pyylp -t libparse.l >libparse.cc.lmp |
---|
7 | |
---|
8 | if diff -w libparse.cc.lmp libparse.cc >/dev/null |
---|
9 | then |
---|
10 | echo libparse.cc was okay |
---|
11 | command rm libparse.cc.lmp |
---|
12 | else |
---|
13 | echo generating new libparse.cc |
---|
14 | mv libparse.cc.lmp libparse.cc |
---|
15 | fi |
---|
16 | |
---|
17 | flex254 -s -I -t scanner.l > scanner.cc.lmp |
---|
18 | |
---|
19 | if diff -w scanner.cc.lmp scanner.cc >/dev/null |
---|
20 | then |
---|
21 | echo scanner.cc was okay |
---|
22 | command rm scanner.cc.lmp |
---|
23 | else |
---|
24 | echo generating new scanner.cc |
---|
25 | mv scanner.cc.lmp scanner.cc |
---|
26 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.