2015-05-15 16:15:49 -04:00
|
|
|
#!/bin/bash
|
2014-08-22 15:31:46 -04:00
|
|
|
|
|
|
|
# This script pushes updates to my Ubuntu PPA: https://launchpad.net/~micahflee/+archive/ppa
|
|
|
|
# If you want to use it, you'll need your own ~/.dput.cf and ssh key.
|
|
|
|
# More info: https://help.launchpad.net/Packaging/PPA/Uploading
|
|
|
|
|
2015-05-15 16:03:04 -04:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
|
|
|
cd $DIR
|
|
|
|
|
2017-02-21 19:59:14 -05:00
|
|
|
VERSION=`cat share/version.txt`
|
2014-08-22 15:31:46 -04:00
|
|
|
|
2015-05-15 16:03:04 -04:00
|
|
|
rm -rf deb_dist >/dev/null 2>&1
|
2016-04-13 17:33:40 -04:00
|
|
|
python3 setup.py --command-packages=stdeb.command sdist_dsc
|
2014-08-22 15:31:46 -04:00
|
|
|
cd deb_dist/onionshare-$VERSION
|
|
|
|
dpkg-buildpackage -S
|
|
|
|
cd ..
|
|
|
|
dput ppa:micahflee/ppa onionshare_$VERSION-1_source.changes
|
|
|
|
cd ..
|