comparison gsm-fw/cdg/makecdg.sh @ 654:95c433d8c274

gsm-fw/cdg: LoCosto version of cdginc regenerated
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 25 Sep 2014 09:46:42 +0000
parents
children a0014ba30d71
comparison
equal deleted inserted replaced
653:31d82d090499 654:95c433d8c274
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 TZ=GMT nowhine ccdgen.exe -h -m512 -a2 -ifflags-$1.h -otempout -Rpdf-mdf-list
20
21 echo "Converting from CRLF to UNIX line endings"
22
23 rm -rf cdginc-$1
24 mkdir cdginc-$1
25
26 for i in `cat gen-file-list`
27 do
28 fromdos < tempout/$i > cdginc-$1/$i
29 done