diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-16 09:39:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-16 09:39:06 +0200 |
commit | c832963ebe7939393f1108d31aa569723190177c (patch) | |
tree | fb978ada240abbca55a0bf17283795b044615cea /test/windows/unpack | |
parent | 0f61d97cb8e971308d91cfe305d20f1f33190dc0 (diff) |
Add Windows test scripts (VC and MinGW)
Diffstat (limited to 'test/windows/unpack')
-rwxr-xr-x | test/windows/unpack | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/windows/unpack b/test/windows/unpack new file mode 100755 index 0000000..9d4d7f7 --- /dev/null +++ b/test/windows/unpack @@ -0,0 +1,43 @@ +#! /usr/bin/env bash + +# Unpack XSD for Windows. +# +# -mingw unpack for MinGW +# + +trap 'exit 1' ERR + +function error () +{ + echo "$*" 1>&2 +} + +mingw=n + +while [ $# -gt 0 ]; do + case $1 in + -mingw) + mingw=y + shift + ;; + *) + error "unknown option: $1" + exit 1 + ;; + esac +done + +if [ $mingw = y ]; then + base=/t +else + base=/cygdrive/t +fi + +rm -rf xsd-i686-windows xsd-*-i686-windows + +v=`echo $base/xsd-*.*.*-i686-windows.zip | sed -e "s%$base/xsd-\([^-]*\).*.zip%\1%"` + +echo unpacking xsd-$v-i686-windows from $base + +unzip -q $base/xsd-$v-i686-windows.zip +mv xsd-$v-i686-windows xsd-i686-windows |