Commit 26a6fd79 authored by Daniel Agar's avatar Daniel Agar

automate ppa creation and upload

parent 92dffd41
#! /bin/bash
rsync -av --delete --exclude=.git ~/git/qgroundcontrol/ ~/tmp/qgroundcontrol-${version}/
tmpdir=`mktemp -d`
long_version=`git describe --always --tags`
short_version=`git describe --always --tags | cut -d "-" -f 1,2`
cd ~/tmp
tar pczf qgroundcontrol_${version}.orig.tar.gz qgroundcontrol-${version}
echo $version
cd ~/tmp/qgroundcontrol-${version}/
debuild -S
debchange -v ${version} --distribution trusty
qmake -r
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
debuild --prepend-path=/usr/lib/ccache -sa
#debuild --prepend-path=/usr/lib/ccache -sa
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment