From 1b03559b2b20528890daf296c9bab1c0c09c3a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Sun, 6 Feb 2011 09:18:43 +0100 Subject: [PATCH] Forgot package_win32.sh --- tools/package.sh | 2 +- tools/package_win32.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 tools/package_win32.sh diff --git a/tools/package.sh b/tools/package.sh index b0685a5..3649c25 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -1,7 +1,7 @@ #!/bin/bash DATE=`date +%d.%m.%Y` -ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` +[ -z "$ARCH" ] && ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2` DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}" FILE="$DIR.tar.bz2" diff --git a/tools/package_win32.sh b/tools/package_win32.sh new file mode 100755 index 0000000..2aba7d2 --- /dev/null +++ b/tools/package_win32.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +DATE=`date +%d.%m.%Y` +[ -z "$ARCH" ] && ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` +VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2` +DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}" +FILE="$DIR.tar.bz2" + +rm -f "$FILE" +rm -rf "$DIR" +if [ "$1" == "clean" ] ; then +make clean +fi +make || (echo "Compilation failed" ; exit 1) +mkdir -p "$DIR" +cp -r lib/freechart/lib/*.dll* lib/wxsqlite3-1.9.9/lib/*.dll* "$DIR" +cp -r kc init.sql ressources tools/launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr www "$DIR" +find "$DIR" -type f -executable -exec ${PREFIX}strip \{\} \; +tar -jcf "$FILE" "$DIR" +rm -rf "$DIR" +echo "Packaged into $FILE !" \ No newline at end of file