18 lines
408 B
Bash
Executable File
18 lines
408 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DATE=`date +%d.%m.%Y`
|
|
DIR="build_$DATE"
|
|
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 kc lib/freechart/lib/* lib/wxsqlite3-1.9.9/lib/* $DIR/lib
|
|
cp -r kc init.sql ressources launch_kc.sh TODO CONTRIBUTORS COPYING README README.fr $DIR
|
|
tar -jcf $FILE $DIR
|
|
rm -rf $DIR
|
|
echo "Packaged !" |