X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=6d770b4e9fbc1b367f4d42a58867ee368482a4d9;hb=90ab94deecf2371c199d56cd35f0fd4fd20233e4;hp=3706a3bcf88fdecafa4c95fdd0aecdcb623e5bba;hpb=bb6532c1ca28e887152b0640aa448b77d2541287;p=sfa.git diff --git a/Makefile b/Makefile index 3706a3bc..6d770b4e 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,8 @@ uninstall: python-uninstall tests-uninstall ########## rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | head -1) -# somehow this is empty -rpmtaglevel:=$(shell rpm -q --specfile sfa.spec --queryformat="%{taglevel}\n" 2> /dev/null | head -1) -rpmtaglevel:=$(if $(rpmtaglevel),$(rpmtaglevel),0) +# 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 @@ -91,7 +90,7 @@ force: ########## tags: - find . -type f | egrep -v '/\.git/|/\.svn/|TAGS|~$$|\.(py[co]|doc|html|pdf|png|svg|out|bak|xml|dg)$$' | xargs etags + find . -type f | egrep -v '/\.git/|/\.svn/|TAGS|AA-|~$$|\.(py[co]|doc|html|pdf|png|svg|out|bak|xml|dg)$$' | xargs etags .PHONY: tags signatures: @@ -142,10 +141,15 @@ else +$(RSYNC) ./sfa/ $(SSHURL)/usr/lib\*/python2.\*/site-packages/sfa/ +$(RSYNC) ./tests/ $(SSHURL)/root/tests-sfa +$(RSYNC) $(BINS) $(SSHURL)/usr/bin/ - +$(RSYNC) ./sfa/init.d/sfa $(SSHURL)/etc/init.d/ + +$(RSYNC) ./init.d/sfa $(SSHURL)/etc/init.d/ +$(RSYNC) ./config/default_config.xml $(SSHURL)/etc/sfa/ $(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 ##########