diff --git a/win/pack.sh b/win/pack.sh new file mode 100755 index 0000000..aa22b83 --- /dev/null +++ b/win/pack.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +myDIR=$(dirname $(dirname $(readlink -f $0))) + +cd $myDIR + +rm -f *.zip + +win32-configure && make clean && make zip +if [ "$?" != "0" ]; then + exit -1 +fi + +win64-configure && make clean && make zip +if [ "$?" != "0" ]; then + exit -1 +fi + +if [ -d ~/public_html/win/pw3270/x86_32 ]; then + cp *i686*.zip ~/public_html/win/pw3270/x86_32 +elif [ -d ~/public_html/win/x86_32 ]; then + cp *i686*.zip ~/public_html/win/x86_32 +fi + +if [ -d ~/public_html/win/pw3270/x86_64 ]; then + cp *x86_64*.zip ~/public_html/win/pw3270/x86_64 +elif [ -d ~/public_html/win/x86_32 ]; then + cp *x86_64*.zip ~/public_html/win/x86_64 +fi + diff --git a/winpacket.sh b/winpacket.sh deleted file mode 100755 index 284c15f..0000000 --- a/winpacket.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -rm -f *.zip - -win32-configure && make clean && make zip - -win64-configure && make clean && make zip - -if [ -d ~/public_html/win/x86_32 ]; then - cp *i686*.zip ~/public_html/win/x86_32 -fi - -if [ -d ~/public_html/win/x86_64 ]; then - cp *.x86_64*.zip ~/public_html/win/x86_64 -fi - -- libgit2 0.21.2