From 92e0df0bcf9bc866a7c8f8129f9406c50e5b5e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 7 Jun 2012 19:48:52 +0200 Subject: [PATCH] Update package files --- tools/package.sh | 5 +++++ tools/package_win32.sh | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/package.sh b/tools/package.sh index 0eee2c7..229b935 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -14,12 +14,15 @@ export DEBEMAIL DEBFULLNAME [ -f "$FILE" ] && rm -f "$FILE" [ -d "$DIR" ] && rm -rf "$DIR" +rm -rf "$DIR" mkdir "$DIR" if [ "$1" == "clean" ] ; then make clean fi make || (echo "Compilation failed" ; exit 1) cp -r kc ressources TODO CONTRIBUTORS COPYING README* www install.sh "$DIR" +rm -rf "$DIR/ressources/po/*" +cp -r ressources/po/*.qm "$DIR/ressources/po/" # Copy only QM files find "$DIR" -type f -executable -exec ${HOST}strip \{\} \; tar -jcf "$FILE" "$DIR" rm -rf "$DIR" @@ -30,6 +33,8 @@ DEB_FILE="kisscount_${VERSION}-1_${ARCH}.deb" rm -rf "$DEB_DIR" "$DEB_FILE" mkdir "$DEB_DIR" cp -r kc.1 kc debian README* ChangeLog TODO CONTRIBUTORS COPYING ressources "$DEB_DIR" +rm -rf "$DEB_DIR/ressources/po/*" +cp -r ressources/po/*.qm "$DEB_DIR/ressources/po/" # Copy only QM files cd "$DEB_DIR" ${HOST}strip kc mv debian/Makefile . diff --git a/tools/package_win32.sh b/tools/package_win32.sh index 3534361..0abf768 100755 --- a/tools/package_win32.sh +++ b/tools/package_win32.sh @@ -6,12 +6,13 @@ VERSION=`cat src/controller/KissCount.hpp | grep APP_VERSION | cut -d\" -f2` DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}" FILE="$DIR.zip" -rm -f "$FILE" -rm -rf "$DIR" +[ -f "$FILE" ] && rm -f "$FILE" +[ -d "$DIR" ] && rm -rf "$DIR" if [ "$1" == "clean" ] ; then make clean fi make || (echo "Compilation failed" ; exit 1) +rm -rf "$DIR" mkdir -p "$DIR" cp -r lib/*.dll* "$DIR" cp -r kc ressources TODO CONTRIBUTORS COPYING README README.fr www "$DIR"