summaryrefslogtreecommitdiffstats
path: root/makesrc.sh
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-05-14 10:43:16 +0200
committerRemi Collet <remi@remirepo.net>2019-05-14 10:43:16 +0200
commitf76d770fbfe8829cb97ad491acd80f994be0f480 (patch)
tree1fe1fbdf20d1dbb81cb60fae089c257fad6c0996 /makesrc.sh
parent72d82b387bd7e64f20f5ec5c4a107a6255dc4f01 (diff)
- update to 2.0.0RC2
- raise dependency on PHP 7.1.0 - raise dependency on ast 1.0.1 - switch to phpunit7
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-xmakesrc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/makesrc.sh b/makesrc.sh
index 37cb6a2..634cdcc 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -4,6 +4,9 @@ NAME=$(basename $PWD)
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
+VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec)
+PREVER=$(sed -n '/^%global upstream_prever/{s/.* //;p}' $NAME.spec)
+VERSION=${VERSION}${PREVER:-}
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
SHORT=${COMMIT:0:7}