diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-03-16 15:27:31 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-03-16 15:27:31 +0100 |
| commit | d0de34d6cf41b2d1d4c2110ae507a790f91d1a67 (patch) | |
| tree | 33bcd5b277d8edc5ab1036f08e630b06d15b797f | |
| parent | 995f215de5493d4fa29c9556f44cff7815ea719f (diff) | |
modify versioning
| -rw-r--r-- | Makefile | 2 | ||||
| -rwxr-xr-x | src/foo | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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. @@ -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." |
