Merge branch 'master' of https://code.grnet.gr/git/flowspy v0.8.0
authorLeonidas Poulopoulos <leopoul@noc.grnet.gr>
Wed, 15 Feb 2012 10:42:19 +0000 (12:42 +0200)
committerLeonidas Poulopoulos <leopoul@noc.grnet.gr>
Wed, 15 Feb 2012 10:42:19 +0000 (12:42 +0200)
Makefile

index 0dd47e7..8eef461 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
 flowspytag = $(shell git describe --abbrev=0)
-flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]\.){1,10}[0-9]')
+flowspyver = $(shell git describe --abbrev=0 | egrep -o '([0-9]+\.){1,10}[0-9]+')
+name              = $(shell basename $(shell pwd))
 
 .PHONY: dist distclean
 
 dist: 
-       git archive --format tar --prefix flowspy-$(flowspyver)/ -o flowspy-$(flowspyver).tar $(flowspytag)
-       gzip -f flowspy-$(flowspyver).tar
+       git archive --format tar --prefix $(name)-$(flowspyver)/ -o $(name)-$(flowspyver).tar $(flowspytag)
+       gzip -f $(name)-$(flowspyver).tar
 distclean:
        @rm -f *tar.gz