Added files and scripts to enable Launchpad.net package building

This commit is contained in:
Damjan Adamic
2017-03-05 21:11:22 +01:00
committed by Bertrand Songis
parent d9c95f97d7
commit 0e906162e1
16 changed files with 705 additions and 34 deletions
+41
View File
@@ -0,0 +1,41 @@
#!/bin/sh
set -e
set -x
# $1 is distribution "trusty" OR "yakkety"
cd `dirname ${0}`
distro=${1%/}
. common/suffix
if [ -z ${distro} ] ; then
echo "Missing distribution name"
exit 1
fi
if [ ! -d ${distro} ] ; then
echo "Files for ${distro} not found. Most likely unsupported distribution. Aborting..."
exit 1
fi
echo "Preparing sources for ${distro}..."
# prepare debian directory
rm -f ../debian/*
mkdir -p ../debian/
cp common/* ../debian/
cp ${distro}/* ../debian/
echo "Editing rules to set version suffix to \"${suffix}\""
sed -i "s/__VERSION_SUFFIX__/${suffix}/g" ../debian/rules
# remove old package and prepare new one
cd ..
rm -f ../opentx-companion22_*${distro}*
debuild -S -sa -I -Ijenkins -Ilaunchpad -Idoc -I*.luac
echo "Use this command to upload to launchpad:"
echo " dput ppa:opentx-test/ppa opentx-companion22_<version>.changes"