FreeCalypso > hg > tcs211-c139
annotate g23m/winebuild.sh @ 30:f93155f0843b
pdt_2092 config compiles (but not ported to C139 yet)
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Tue, 03 Nov 2015 07:45:34 +0000 |
parents | dc9d25ac72a9 |
children | c56a4b0bcf38 |
rev | line source |
---|---|
0
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 #!/bin/sh |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 # Something in TI's nasty build mechanism (at least when running under wine) |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 # messes up the tty modes and fails to restore them upon finish. |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 # This shell script wraps the needed wine invokation (nowhine actually, |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 # itself a whine-suppressing wrapper around wine) with some stty magic |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 # to preserve and restore the tty modes. |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 # |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 # Also added the TZ=GMT setting: without it Wine produces additional whines |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 # about not being able to map my Unix timezone to a Weenie equivalent. |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 |
16
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
11 if [ -n "$1" ] |
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
12 then |
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
13 config="$1" |
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
14 else |
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
15 config=2091 |
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
16 fi |
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
17 |
0
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 set -x |
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 tty_mode_save=`stty -g` |
16
dc9d25ac72a9
initial preparations for building both 2091 and 2092 configs
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
20 TZ=GMT nowhine cmd /c build_${config}.bat |
0
509db1a7b7b8
initial import: leo2moko-r1
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 stty "$tty_mode_save" |