From: Thierry Parmentelat Date: Mon, 15 Sep 2014 07:46:01 +0000 (+0200) Subject: provide a more decent default to SCMURL for version.py when not run from within a... X-Git-Tag: sfa-3.1-11~2 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=e95e69e1cac148746e057da9b99f457fac2066f3 provide a more decent default to SCMURL for version.py when not run from within a build box hopefully useful for when pushing onto pypi - if we can get that to work --- diff --git a/Makefile b/Makefile index ddfac30a..76392a9d 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | he # somehow %{taglevel} is empty, turns out %{release} has what we want rpmtaglevel:=$(shell rpm -q --specfile sfa.spec --queryformat="%{release}\n" 2> /dev/null | head -1) VERSIONTAG=$(rpmversion)-$(rpmtaglevel) -SCMURL=should-be-redefined-by-specfile +# this used to be 'should-be-redefined-by-specfile' and it indeed should be +SCMURL=git://git.onelab.eu/sfa.git python: version