FreeCalypso > hg > fc-magnetite
comparison cdg3/makecdg.sh @ 16:c15047b3d00d
cdg3: import from freecalypso-citrine/cdg
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2016 16:27:34 +0000 |
parents | |
children | 02269c474131 |
comparison
equal
deleted
inserted
replaced
15:c8bdae60fcb1 | 16:c15047b3d00d |
---|---|
1 #!/bin/sh | |
2 | |
3 set -e | |
4 | |
5 if [ $# != 1 ] | |
6 then | |
7 echo "Usage: %s config-name" 1>&2 | |
8 exit 1 | |
9 fi | |
10 | |
11 if [ ! -f "fflags-$1.h" ] | |
12 then | |
13 echo "error: specified configuration is not known" 1>&2 | |
14 exit 1 | |
15 fi | |
16 | |
17 rm -rf tempout | |
18 mkdir tempout | |
19 | |
20 # nowhine is a wrapper around wine that suppresses some obnoxious whine, | |
21 # see leo2moko. TZ=GMT avoids some pesky time zone issues. | |
22 # The arguments to ccdgen have been taken from TCS211 pdt_*.mak makefiles. | |
23 | |
24 TZ=GMT nowhine ccdgen.exe -h -m512 -a2 -ifflags-$1.h -otempout -Rpdf-mdf-list | |
25 | |
26 echo "Converting from CRLF to UNIX line endings" | |
27 | |
28 rm -rf cdginc-$1 | |
29 mkdir cdginc-$1 | |
30 | |
31 # fromdos comes with Slackware, dunno about other distros | |
32 for i in `cat gen-file-list` | |
33 do | |
34 fromdos < tempout/$i > cdginc-$1/$i | |
35 done |