1 changed files with 19 additions and 8 deletions
@ -1,17 +1,28 @@ |
|||||||
#! /bin/bash |
#! /bin/bash |
||||||
|
|
||||||
version="2.4" |
tmpdir=`mktemp -d` |
||||||
rsync -av --delete --exclude=.git ~/git/qgroundcontrol/ ~/tmp/qgroundcontrol-${version}/ |
long_version=`git describe --always --tags` |
||||||
|
short_version=`git describe --always --tags | cut -d "-" -f 1,2` |
||||||
|
|
||||||
cd ~/tmp |
version=${long_version:1} |
||||||
tar pczf qgroundcontrol_${version}.orig.tar.gz qgroundcontrol-${version} |
dir_version=${short_version:1} |
||||||
|
echo $version |
||||||
|
|
||||||
cd ~/tmp/qgroundcontrol-${version}/ |
debchange -v ${version} --distribution trusty |
||||||
debuild -S |
|
||||||
|
qmake -r qgroundcontrol.pro |
||||||
|
make git_ver |
||||||
|
|
||||||
|
rsync -av --delete --exclude={.git,build-release,release,Makefile\*} . ${tmpdir}/qgroundcontrol-${dir_version}/ |
||||||
|
|
||||||
dput ppa:qgroundcontrol/ppa qgroundcontrol_${version}-0ubuntu1_source.changes |
cd ${tmpdir} |
||||||
|
tar pczf qgroundcontrol_${dir_version}.orig.tar.gz qgroundcontrol-${dir_version} |
||||||
|
|
||||||
|
cd ${tmpdir}/qgroundcontrol-${dir_version}/ |
||||||
|
debuild -S |
||||||
|
|
||||||
|
dput ppa:qgroundcontrol/ppa ${tmpdir}/qgroundcontrol_${version}_source.changes |
||||||
|
|
||||||
|
|
||||||
# test building the source deb locally |
# test building the source deb locally |
||||||
debuild --prepend-path=/usr/lib/ccache -sa |
#debuild --prepend-path=/usr/lib/ccache -sa |
||||||
|
Loading…
Reference in new issue