diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/g23m/winebuild.sh	Mon Jun 01 03:24:05 2015 +0000
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Something in TI's nasty build mechanism (at least when running under wine)
+# messes up the tty modes and fails to restore them upon finish.
+# This shell script wraps the needed wine invokation (nowhine actually,
+# itself a whine-suppressing wrapper around wine) with some stty magic
+# to preserve and restore the tty modes.
+#
+# Also added the TZ=GMT setting: without it Wine produces additional whines
+# about not being able to map my Unix timezone to a Weenie equivalent.
+
+set -x
+tty_mode_save=`stty -g`
+TZ=GMT nowhine cmd /c build.bat
+stty "$tty_mode_save"