ubuntu_ppa 732 Bytes
Newer Older
1 2
#! /bin/bash

3 4 5
tmpdir=`mktemp -d`
long_version=`git describe --always --tags`
short_version=`git describe --always --tags | cut -d "-" -f 1,2`
6

7 8 9
version=${long_version:1}
dir_version=${short_version:1}
echo $version
10

11 12 13 14 15 16
debchange -v ${version} --distribution trusty

qmake -r qgroundcontrol.pro
make git_ver

rsync -av --delete --exclude={.git,build-release,release,Makefile\*} . ${tmpdir}/qgroundcontrol-${dir_version}/
17

18 19 20 21 22
cd ${tmpdir}
tar pczf qgroundcontrol_${dir_version}.orig.tar.gz qgroundcontrol-${dir_version}

cd ${tmpdir}/qgroundcontrol-${dir_version}/
debuild -S
23

24
dput ppa:qgroundcontrol/ppa ${tmpdir}/qgroundcontrol_${version}_source.changes
25 26 27


# test building the source deb locally
28
#debuild --prepend-path=/usr/lib/ccache -sa