FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/cdg/makecdg.sh @ 812:b522307de6f2
aci: psa_ss?.c done
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 05 Apr 2015 07:58:27 +0000 |
parents | a0014ba30d71 |
children |
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 |
660
a0014ba30d71
gsm-fw/cdg/makecdg.sh: added some comments
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
654
diff
changeset
|
19 |
a0014ba30d71
gsm-fw/cdg/makecdg.sh: added some comments
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
654
diff
changeset
|
20 # nowhine is a wrapper around wine that suppresses some obnoxious whine, |
a0014ba30d71
gsm-fw/cdg/makecdg.sh: added some comments
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
654
diff
changeset
|
21 # see leo2moko. TZ=GMT avoids some pesky time zone issues. |
a0014ba30d71
gsm-fw/cdg/makecdg.sh: added some comments
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
654
diff
changeset
|
22 # The arguments to ccdgen have been taken from TCS211 pdt_*.mak makefiles. |
a0014ba30d71
gsm-fw/cdg/makecdg.sh: added some comments
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
654
diff
changeset
|
23 |
654
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 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
|
25 |
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 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
|
27 |
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 rm -rf cdginc-$1 |
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 mkdir cdginc-$1 |
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 |
660
a0014ba30d71
gsm-fw/cdg/makecdg.sh: added some comments
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
654
diff
changeset
|
31 # fromdos comes with Slackware, dunno about other distros |
654
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 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
|
33 do |
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
34 fromdos < tempout/$i > cdginc-$1/$i |
95c433d8c274
gsm-fw/cdg: LoCosto version of cdginc regenerated
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 done |