diff options
Diffstat (limited to 'php-justinrainbow-json-schema4-makesrc.sh')
-rwxr-xr-x | php-justinrainbow-json-schema4-makesrc.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/php-justinrainbow-json-schema4-makesrc.sh b/php-justinrainbow-json-schema4-makesrc.sh index dfd5c2a..e9f0fbc 100755 --- a/php-justinrainbow-json-schema4-makesrc.sh +++ b/php-justinrainbow-json-schema4-makesrc.sh @@ -3,7 +3,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) +MAJOR=$(sed -n '/^%global major/{s/.* //;p}' $NAME.spec) +MINOR=$(sed -n '/^%global minor/{s/.* //;p}' $NAME.spec) +VERSION=$MAJOR.$MINOR COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} |