Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 6e7964b32822f0e3d1f00e1afbfc52d817980f8f
Author: Michal Minar <miminar(a)redhat.com>
Date: Fri Sep 12 12:19:44 2014 +0200
fixed setup command
Makefile did not read version of tools properly.
---------------------------------------------------------------
Makefile.inc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index 7b8025c..64814cd 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1,6 +1,6 @@
SELFDIR = $(dir $(lastword $(MAKEFILE_LIST)))
ROOTDIR := $(SELFDIR)
-VERSION ?= $(shell PYTHONPATH=$(ROOTDIR/cli) python -c \
+VERSION ?= $(shell PYTHONPATH=$(ROOTDIR)/cli python -c \
'print(__import__("lmi.shell",
fromlist=["__version__"]).__version__)')
TEMPLATES := $(wildcard *.py.skel)
TARGETS := $(basename $(TEMPLATES))
@@ -8,6 +8,7 @@ TARGETS := $(basename $(TEMPLATES))
.PHONY: setup clean-setup
setup: $(TARGETS)
+ @echo "Written setup scripts with tools version = $(VERSION)."
%.py: %.py.skel
sed 's/@@VERSION@@/$(VERSION)/g' <$? >$@