From d0de34d6cf41b2d1d4c2110ae507a790f91d1a67 Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sun, 16 Mar 2014 15:27:31 +0100 Subject: modify versioning --- Makefile | 2 +- src/foo | 4 +++- 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." -- cgit v1.2.3