annotate scripts/mkcomp-test.sh @ 17:6323e661f2ed

added the ability to select different gpf and cdginc versions
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 27 Sep 2016 16:46:56 +0000
parents 352f80da6813
children 88f40f4c829f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #!/bin/sh
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
3 if [ -z "$BUILD_DIR" ]
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
4 then
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
5 BUILD_DIR=build-sb
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
6 fi
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
7
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
8 if [ -z "$USE_STR2IND" ]
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
9 then
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
10 USE_STR2IND=0
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
11 fi
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
12
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
13 if [ -z "$GPF" ]
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
14 then
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
15 GPF=gpf2
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
16 fi
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
18 case "$GPF" in
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
19 gpf2)
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
20 CDGINC=cdg211/cdginc
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
21 CDGPRIM=cdg211/prim
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
22 ;;
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
23 gpf3)
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
24 CDGINC=cdg3/cdginc-conservative
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
25 CDGPRIM=cdg3/sap-inline
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
26 ;;
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
27 *)
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
28 echo "Error: bad GPF= setting" 1>&2
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
29 exit 1
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
30 ;;
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
31 esac
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
32
10
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 GPRS=1
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 MMI=0
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 SRVC=1
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36
17
6323e661f2ed added the ability to select different gpf and cdginc versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 10
diff changeset
37 export BUILD_DIR CDGINC CDGPRIM GPF GPRS MMI SRVC USE_STR2IND
10
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38
352f80da6813 ACI compiles!
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 exec scripts/mk-component.sh "$@"