diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-14 10:46:18 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-14 10:47:08 +0100 |
commit | ef25c6cf41970368cce00be35fb5f715086b2c94 (patch) | |
tree | 134980c0fad1ebb698eb914f410c60c6a803e8be /abump.in | |
parent | 692a31793c88ed35a34b83db6668f17e96ee6776 (diff) | |
download | abuild-ef25c6cf41970368cce00be35fb5f715086b2c94.tar.gz abuild-ef25c6cf41970368cce00be35fb5f715086b2c94.tar.bz2 abuild-ef25c6cf41970368cce00be35fb5f715086b2c94.tar.xz abuild-ef25c6cf41970368cce00be35fb5f715086b2c94.zip |
abump: add option -f to set "fixes" in commit message
Diffstat (limited to 'abump.in')
-rwxr-xr-x | abump.in | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -26,10 +26,16 @@ do_bump() { fi msg="$section/$pkgname: $upgrade to ${pkgver}${cve}" + if [ -n "$fixes" ]; then + msg="$msg + +fixes #${fixes#\#} +" + fi echo "$msg" - + ( . ./APKBUILD; type package | grep -q function ) || die "package() missing" - + sed -i -e "s/^pkgver=.*/pkgver=$pkgver/" \ -e "s/^pkgrel=.*/pkgrel=0/" \ APKBUILD @@ -42,19 +48,21 @@ do_bump() { usage() { echo "$program - utility to bump pkgver in APKBUILDs" - echo "usage: $program [-hR] [-s CVE-1,CVE-2,...]" + echo "usage: $program [-hR] [-s CVE-1,CVE-2,...] [-f ISSUE]" echo "" echo " -h show this help" echo " -R run abuild with -R for recursive building" echo " -k keep existing packages" echo " -s security update" + echo " -f fixes ISSUE" exit 0 } keep= recursive="-r" -while getopts "hkRs:" opt; do +while getopts "f:hkRs:" opt; do case $opt in + f) fixes="${OPTARG}";; h) usage;; k) keep="-k";; R) recursive="-R";; |