summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2014-03-16 15:27:31 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2014-03-16 15:27:31 +0100
commitd0de34d6cf41b2d1d4c2110ae507a790f91d1a67 (patch)
tree33bcd5b277d8edc5ab1036f08e630b06d15b797f
parent995f215de5493d4fa29c9556f44cff7815ea719f (diff)
modify versioning
-rw-r--r--Makefile2
-rwxr-xr-xsrc/foo4
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0d09a25..625ca88 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ all: version docs build
# Builds the project. Since this is only a fake project, it just copies a script.
build:
cp -p ./src/$(NAME) bin/$(NAME)
- echo "echo This is version $$(cat .version)" >> bin/$(NAME)
+ sed -i "s/VERSION_DEVEL/$$(cat .version)/" bin/$(NAME)
# 'install' installes a fake-root, which will be used to build the Debian package
# $DESTDIR is actually set by the Debian tools.
diff --git a/src/foo b/src/foo
index eabe0de..8ccad18 100755
--- a/src/foo
+++ b/src/foo
@@ -1,3 +1,5 @@
#!/bin/bash
-echo "Hello World, I am a fake project"
+declare -r VERSION='VERSION_DEVEL'
+
+echo "This is version $VERSION of the example template project."