summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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."