summaryrefslogtreecommitdiffstats
path: root/makesrc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makesrc.sh')
-rwxr-xr-xmakesrc.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/makesrc.sh b/makesrc.sh
index 80221de..59c1c6a 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -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