diff options
author | Remi Collet <remi@remirepo.net> | 2020-05-28 08:54:52 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-05-28 08:54:52 +0200 |
commit | ab3dc1bf3fbc29fe13ec2ff80d6986e0201bdcc9 (patch) | |
tree | b74f5f3f54763084887498bf6100faa8cbfa7f62 /php-justinrainbow-json-schema5-makesrc.sh | |
parent | 413602a0a4c3bebde69b9fa196698b02456f4de8 (diff) |
v5.2.10
Diffstat (limited to 'php-justinrainbow-json-schema5-makesrc.sh')
-rwxr-xr-x | php-justinrainbow-json-schema5-makesrc.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/php-justinrainbow-json-schema5-makesrc.sh b/php-justinrainbow-json-schema5-makesrc.sh index e9f0fbc..dfd5c2a 100755 --- a/php-justinrainbow-json-schema5-makesrc.sh +++ b/php-justinrainbow-json-schema5-makesrc.sh @@ -3,9 +3,7 @@ NAME=$(basename $PWD) OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) PROJECT=$(sed -n '/^%global gh_project/{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 +VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} |