Add cross compilation support

This commit is contained in:
Grégory Soutadé
2011-01-25 20:26:29 +01:00
parent 90994542c3
commit c0591e9815
3 changed files with 13 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
DATE=`date +%d.%m.%Y`
ARCH=`uname -m`
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"
@@ -15,7 +15,7 @@ make || (echo "Compilation failed" ; exit 1)
mkdir -p "$DIR"/lib
cp -r lib/freechart/lib/*.so* lib/wxsqlite3-1.9.9/lib/*.so* "$DIR"/lib
cp -r kc init.sql ressources tools/launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr www "$DIR"
find "$DIR" -type f -executable -exec strip \{\} \;
find "$DIR" -type f -executable -exec ${PREFIX}strip \{\} \;
tar -jcf "$FILE" "$DIR"
rm -rf "$DIR"
echo "Packaged !"
echo "Packaged into $FILE !"