source: git/Singular/make_scanner_libparse @ cbf866

fieker-DuValspielwiese
Last change on this file since cbf866 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
6flex254 -B -Pyylp -t libparse.l >libparse.cc.lmp
7
8if diff -w libparse.cc.lmp libparse.cc >/dev/null
9then
10  echo libparse.cc was okay
11  command rm libparse.cc.lmp
12else
13  echo generating new libparse.cc
14  mv libparse.cc.lmp libparse.cc
15fi
16
17flex254  -s -I -t scanner.l > scanner.cc.lmp
18
19if diff -w scanner.cc.lmp scanner.cc >/dev/null
20then
21  echo scanner.cc was okay
22  command rm scanner.cc.lmp
23else
24  echo generating new scanner.cc
25  mv scanner.cc.lmp scanner.cc
26fi
Note: See TracBrowser for help on using the repository browser.