annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
654
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 #!/bin/sh
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 set -e
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 if [ $# != 1 ]
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 then
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 echo "Usage: %s config-name" 1>&2
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 exit 1
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 fi
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 if [ ! -f "fflags-$1.h" ]
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 then
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 echo "error: specified configuration is not known" 1>&2
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 exit 1
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 fi
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 rm -rf tempout
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 mkdir tempout
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 TZ=GMT nowhine ccdgen.exe -h -m512 -a2 -ifflags-$1.h -otempout -Rpdf-mdf-list
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 echo "Converting from CRLF to UNIX line endings"
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 rm -rf cdginc-$1
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 mkdir cdginc-$1
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 for i in `cat gen-file-list`
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 do
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 fromdos < tempout/$i > cdginc-$1/$i
95c433d8c274 gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 done