X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=701c3295ff49b418b5bb9d335eaa91a2e483f1a7;hb=c0627fead40cd7ae78f22c8878dd8a017d07879c;hp=4f1b51a480a54fb44ad5b4e8dcefb00452f3741c;hpb=3549fbaaa75ad8244d64ad631ae893a0afa54421;p=sfa.git diff --git a/Makefile b/Makefile index 4f1b51a4..701c3295 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,13 @@ uninstall: python-uninstall tests-uninstall .PHONY: all install clean uninstall -VERSIONTAG=0.0-0-should.be-redefined-by-specfile +########## +rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | head -1) +# 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 -########## python: version version: sfa/util/version.py @@ -143,5 +146,10 @@ else $(SSHCOMMAND) exec service sfa restart endif +# 99% of the time this is enough +fastsync: + +$(RSYNC) ./sfa/ $(SSHURL)/usr/lib\*/python2.\*/site-packages/sfa/ + $(SSHCOMMAND) exec service sfa restart + .PHONY: sync ##########