diff options
| author | ruki <[email protected]> | 2020-09-10 00:49:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-09-10 00:49:03 +0800 |
| commit | 318ba729f83015ba54fff21b3668f6602add8df4 (patch) | |
| tree | 7f95f7003431e6de8222ea73668fb0d9c96b60a5 /scripts/makeppa | |
| parent | 8174ff0f8b4cc6591222ccb39d841959abed14c8 (diff) | |
update makeppa
Diffstat (limited to 'scripts/makeppa')
| -rwxr-xr-x | scripts/makeppa | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/makeppa b/scripts/makeppa index 7f298eb97..3a2d3ee32 100755 --- a/scripts/makeppa +++ b/scripts/makeppa @@ -1,8 +1,8 @@ #!/usr/bin/env bash # check -if [ $# -lt 0 ]; then - echo "Usage: ./scripts/makeppa [patch]" +if [ $# -lt 1 ]; then + echo "Usage: ./scripts/makeppa [serie] [patch]" exit fi @@ -15,8 +15,14 @@ fi # version version=`cat ./core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` +# serie, e.g. groovy, focal, bionic, xenial, trusty, precise +serie="$1" +if [ -z $serie ]; then + serie=xenial +fi + # patch number -patch="$1" +patch="$2" if [ -z $patch ]; then patch=1 fi @@ -54,6 +60,11 @@ if [ -d debian ]; then fi cp -r ../../scripts/debian . +# update changelog +rm debian/changelog +dch -v $version+$patch "update $version" -D $serie --create --package xmake -M $USER +cat debian/changelog + # build package echo "building package .." debuild -S -k2C0C68C9 |
