summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-03 10:55:30 +0100
committerRemi Collet <fedora@famillecollet.com>2017-03-03 10:55:30 +0100
commit2aa4ff43c5d1792cb805f298df669574a00f5388 (patch)
treef1df3f94c522ee81b5bc1a5ebb944e74e9da308f
parentd8765c9f4ef477d2eec9501cc4d8abd9cdf05e2c (diff)
php-zendframework-zend-expressive-platesrenderer: typo
-rwxr-xr-xpkgup8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgup b/pkgup
index fb03148..80817cc 100755
--- a/pkgup
+++ b/pkgup
@@ -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