diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-03 10:55:30 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-03 10:55:30 +0100 |
commit | 2aa4ff43c5d1792cb805f298df669574a00f5388 (patch) | |
tree | f1df3f94c522ee81b5bc1a5ebb944e74e9da308f /pkgup | |
parent | d8765c9f4ef477d2eec9501cc4d8abd9cdf05e2c (diff) |
php-zendframework-zend-expressive-platesrenderer: typo
Diffstat (limited to 'pkgup')
-rwxr-xr-x | pkgup | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -9,7 +9,11 @@ if [ $# -lt 2 ]; then echo "usage $0 version commit" exit 1 fi -name=${3:$(basename $PWD)} +if [ x$3 = x ]; then + name=$(basename $PWD) +else + name=$(basename $3 .spec) +fi sed --regexp-extended \ --expression "/^Version:/s/[0-9.]+$/$1/" \ @@ -17,5 +21,5 @@ sed --regexp-extended \ --expression "/(github|gh)_commit/s/[0-9a-f]{40}$/$2/" \ --expression '/^Release:/s/[0-9.]+/1/' \ --expression "s/%changelog/%changelog\n* $rpmdate $vendor - $1-1\n- Update to $1\n/" \ - --in-place *spec + --in-place $name.spec |