summaryrefslogtreecommitdiff
path: root/scripts/makeppa
diff options
context:
space:
mode:
authorruki <[email protected]>2017-04-07 13:27:08 +0800
committerruki <[email protected]>2017-04-07 13:27:08 +0800
commit4550a78f09c041fbe8945980ce981b63e2a8b26a (patch)
tree168a165372496f63deaa20bd187f75ea545530ed /scripts/makeppa
parent265c594d2a97fde5a16f9c44580cb7a7773d6bbc (diff)
modify debian script and changelog
Diffstat (limited to 'scripts/makeppa')
-rwxr-xr-xscripts/makeppa13
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/makeppa b/scripts/makeppa
index 5892b7a6b..92e327f2a 100755
--- a/scripts/makeppa
+++ b/scripts/makeppa
@@ -2,7 +2,7 @@
# check
if [ $# -lt 1 ]; then
- echo "Usage: ./scripts/makeppa [version]"
+ echo "Usage: ./scripts/makeppa [version] [patch]"
exit
fi
@@ -15,6 +15,12 @@ fi
# version
version=$1
+# patch number
+patch="$2"
+if [ -z $patch ]; then
+ patch=1
+fi
+
# tarball
tarball=$workdir/xmake-$version.tar.gz
if [ ! -f $tarball ]; then
@@ -50,13 +56,14 @@ debuild -S -k8A0FFB63
# check package
echo "checking package .."
-lintian ../xmake_$version-1.dsc
+lintian ../xmake_$version-$patch.dsc
# upload package
+source=xmake_$version-"$patch"_source
while true; do
read -p "Do you wish to upload this package? (y/n)" yn
case $yn in
- [Yy]* ) if [ -f ../xmake_$version-1_source.ppa.upload ]; then rm ../xmake_$version-1_source.ppa.upload; fi ; dput ppa:tboox/xmake ../xmake_$version-1_source.changes; break;;
+ [Yy]* ) if [ -f ../$source.ppa.upload ]; then rm ../$source.ppa.upload; fi ; dput ppa:tboox/xmake ../$source.changes; break;;
[Nn]* ) exit;;
* ) echo "Please answer y or n.";;
esac