comparison g23m/winebuild.sh @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 #!/bin/sh
2 # Something in TI's nasty build mechanism (at least when running under wine)
3 # messes up the tty modes and fails to restore them upon finish.
4 # This shell script wraps the needed wine invokation (nowhine actually,
5 # itself a whine-suppressing wrapper around wine) with some stty magic
6 # to preserve and restore the tty modes.
7 #
8 # Also added the TZ=GMT setting: without it Wine produces additional whines
9 # about not being able to map my Unix timezone to a Weenie equivalent.
10
11 set -x
12 tty_mode_save=`stty -g`
13 TZ=GMT nowhine cmd /c build.bat
14 stty "$tty_mode_save"