Update package files
This commit is contained in:
parent
a42b343a14
commit
92e0df0bcf
|
@ -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 .
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user