5 # $1 is distribution "trusty" OR "yakkety"
14 if [ -z ${distro} ] ; then
15 echo "Missing distribution name"
19 if [ ! -d ${distro} ] ; then
20 echo "Files for ${distro} not found. Most likely unsupported distribution. Aborting..."
24 echo "Preparing sources for ${distro}..."
26 # prepare debian directory
29 cp common
/* ..
/debian
/
30 cp ${distro}/* ..
/debian
/
32 echo "Editing rules to set version suffix to \"${suffix}\""
33 sed -i "s/__VERSION_SUFFIX__/${suffix}/g" ..
/debian
/rules
35 # remove old package and prepare new one
37 rm -f ..
/opentx-companion22_
*${distro}*
38 debuild
-S -sa -I -Ijenkins -Ilaunchpad -Idoc -I*.luac
40 echo "Use this command to upload to launchpad:"
41 echo " dput ppa:opentx-test/ppa opentx-companion22_<version>.changes"