From 318ba729f83015ba54fff21b3668f6602add8df4 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 10 Sep 2020 00:49:03 +0800 Subject: update makeppa --- scripts/makeppa | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'scripts') 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 -- cgit v1.3.1