Pierre-Yves David avatar Pierre-Yves David committed ca5bb72

pkg: abstract version in makefile

Comments (0)

Files changed (1)

 PYTHON=python
 HG=`which hg`
+VERSION=$(shell python setup.py --version)
+
 
 help:
 	@echo 'Commonly used make targets:'
 
 deb-prepare:
 	python setup.py sdist --dist-dir ..
-	mv -f ../hg-evolve-1.0.0.tar.gz ../mercurial-evolve_1.0.0.orig.tar.gz
-	tar xf ../mercurial-evolve_1.0.0.orig.tar.gz
-	rm -rf ../mercurial-evolve_1.0.0.orig
-	mv hg-evolve-1.0.0 ../mercurial-evolve_1.0.0.orig
-	cp -r debian/ ../mercurial-evolve_1.0.0.orig/
-	@cd ../mercurial-evolve_1.0.0.orig && echo 'debian build directory ready at' `pwd`
+	mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz
+	tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz
+	rm -rf ../mercurial-evolve_$(VERSION).orig
+	mv hg-evolve-$(VERSION) ../mercurial-evolve_$(VERSION).orig
+	cp -r debian/ ../mercurial-evolve_$(VERSION).orig/
+	@cd ../mercurial-evolve_$(VERSION).orig && echo 'debian build directory ready at' `pwd`
 
 .PHONY: tests all-version-tests
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.