FreeCalypso > hg > freecalypso-citrine
comparison cdg/makecdg.sh @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 |