summaryrefslogtreecommitdiffstats
path: root/setup.sh
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@civ.zcu.cz>2014-07-06 19:46:46 +0200
committerFrantišek Dvořák <valtri@civ.zcu.cz>2014-07-06 19:46:46 +0200
commit7fda31ae7618078a5b9af590a2fee8630f33f32f (patch)
tree588a600a30ceba460193e2565c2315a414f51763 /setup.sh
parentd4ebba1493ec429bc2256f50ed4c2bb247f37f7c (diff)
downloadcodecs-testing-mingw-7fda31ae7618078a5b9af590a2fee8630f33f32f.tar.gz
codecs-testing-mingw-7fda31ae7618078a5b9af590a2fee8630f33f32f.tar.xz
codecs-testing-mingw-7fda31ae7618078a5b9af590a2fee8630f33f32f.zip
Separate setup of the environment and generating the scrits.
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100755
index 0000000..94d9a25
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,15 @@
+#! /bin/sh -xe
+
+rm -rf $HOME/.wine32 $HOME/.wine64
+
+(export WINEPREFIX=$HOME/.wine32
+echo | wine cmd
+sleep 10
+sed -i 's/^\("PATH"=.*\)"\s*$/\1;Z:\\\\usr\\\\i686-w64-mingw32\\\\sys-root\\\\mingw\\\\bin"/' $WINEPREFIX/system.reg)&
+
+(export WINEPREFIX=$HOME/.wine64
+echo | wine cmd
+sleep 10
+sed -i 's/^\("PATH"=.*\)"\s*$/\1;Z:\\\\usr\\\\x86_64-w64-mingw32\\\\sys-root\\\\mingw\\\\bin"/' $WINEPREFIX/system.reg)&
+
+wait