#!/bin/bash DATE=`date +%d.%m.%Y` ARCH=`uname -m` DIR="KissCount_build_${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/lib cp -r lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* $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 \{\} \; tar -jcf $FILE $DIR rm -rf $DIR echo "Packaged !"