KShare/packages/makedeb.sh

27 lines
487 B
Bash
Raw Normal View History

2017-06-25 14:41:48 +02:00
#!/usr/bin/env bash
if [[ "$1" == "" ]]
then
echo "Provide a version with arg1" >&2
exit 1
fi
2017-11-16 20:37:46 +01:00
cp deb work -r
2017-06-26 17:07:03 +02:00
sed "s/%ver/$1/g" deb/DEBIAN/control > work/DEBIAN/control
2017-06-25 14:41:48 +02:00
mkdir -p work/usr/bin
mkdir compiling
cd compiling
qmake ../../KShare.pro
if make
then
cd ..
2017-11-14 23:06:20 +01:00
cp compiling/src/kshare work/usr/bin/kshare
2017-06-25 14:41:48 +02:00
else
rm -rf compiling
echo "Failed to make!"
exit 2
fi
cd work
2017-11-16 20:37:46 +01:00
md5sum usr/bin/kshare usr/share/applications/KShare.desktop > DEBIAN/md5sums
2017-06-25 14:41:48 +02:00
cd ..
2017-06-25 23:20:57 +02:00
dpkg-deb -b work/
2017-06-26 17:07:03 +02:00
rm -rf work