diff options
Diffstat (limited to 'makesrc.sh')
| -rwxr-xr-x | makesrc.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,7 +3,13 @@ NAME=$(sed -n '/^Name:/{s/.* //;p}' *.spec) OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec) PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec) -TAG=$(sed -n '/^%global gh_tag/{s/.* //;p}' $NAME.spec) +VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec) +DATE=$(sed -n '/^%global gh_date/{s/.* //;p}' $NAME.spec) +PREVER=$(sed -n '/^%global upstream_prever/{s/.* //;p}' $NAME.spec) +if [ -z "$PREVER" ] +then TAG=$VERSION +else TAG=$VERSION-$PREVER +fi if [ -f $NAME-$TAG.tgz -a "$1" != "-f" ]; then echo skip $NAME-$TAG.tgz already here |
