From 76e9c33cdb7cd59787adadd0caf19b6c37190982 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 30 Jan 2017 15:14:18 -0200 Subject: [PATCH] Ajustes para empacotamento windows. --- win/pack.sh | 30 ++++++++++++++++++++++++++++++ winpacket.sh | 16 ---------------- 2 files changed, 30 insertions(+), 16 deletions(-) create mode 100755 win/pack.sh delete mode 100755 winpacket.sh 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