summaryrefslogtreecommitdiff
path: root/scripts/makeppa
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-10 22:49:49 +0800
committerruki <[email protected]>2020-09-10 22:49:49 +0800
commit35be97ffcbb1de8ac8676412bb0dc450d6e2a1a2 (patch)
treeab09b35c44c8ff26772cb29899123067a4a45326 /scripts/makeppa
parentd929b14428cbfef022bf857c3fd92693e51a59cb (diff)
support ppa on linux ci
Diffstat (limited to 'scripts/makeppa')
-rwxr-xr-xscripts/makeppa24
1 files changed, 7 insertions, 17 deletions
diff --git a/scripts/makeppa b/scripts/makeppa
index 8615f916c..0af565bc9 100755
--- a/scripts/makeppa
+++ b/scripts/makeppa
@@ -50,7 +50,7 @@ echo "making template .."
if [ -d debian ]; then
rm -rf debian
fi
-export USER=ruki
+export USER=`id -u -n`
dh_make -e [email protected] -c apache -y -s -f ../$basename.tar.gz
# copy debian
@@ -74,26 +74,16 @@ echo "checking package .."
lintian ../xmake_$version+$patch$serie.dsc
# upload package
+echo "uploading package .."
source=xmake_$version+"$patch$serie"_source
-while true; do
- read -p "Do you wish to upload this package? (y/n)" yn
- case $yn in
- [Yy]* ) if [ -f ../$source.ppa.upload ]; then rm ../$source.ppa.upload; fi ; dput ppa:xmake-io/xmake ../$source.changes; break;;
- [Nn]* ) exit;;
- * ) echo "Please answer y or n.";;
- esac
-done
+if [ -f ../$source.ppa.upload ]; then
+ rm ../$source.ppa.upload
+fi
+dput ppa:xmake-io/xmake ../$source.changes
# remove workdir
cd ../..
-while true; do
- read -p "Do you wish to remove working directory? (y/n)" yn
- case $yn in
- [Yy]* ) rm -rf xmake-ppa; break;;
- [Nn]* ) exit;;
- * ) echo "Please answer y or n.";;
- esac
-done
+rm -rf xmake-ppa
# install dh-make and gpg
# sudo apt install dh-make rng-tools