diff options
author | Andreas Fankhauser (@tux-six) | 2022-07-06 22:23:22 +0200 |
---|---|---|
committer | Andreas Fankhauser (@tux-six) | 2022-07-06 22:23:22 +0200 |
commit | b627374773e3256fbd08fb204fcced3233b9c97e (patch) | |
tree | 0ce631914071a559441698d3d7a84e104d7b4395 /configure | |
parent | 0d745cdb688eab40094c434d2564515705ce686b (diff) | |
download | bulk-ln-b627374773e3256fbd08fb204fcced3233b9c97e.zip bulk-ln-b627374773e3256fbd08fb204fcced3233b9c97e.tar.gz |
Add contrib Dockerfile about how to build from tarball
- rename README.txt -> README.md
- Add contrib Dockerfile as sample how to build from tarball
- Fix bashism 'set -o posix'
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,6 @@ set -e -set -o posix +if test -n "$BASH_VERSION"; then set -o posix; fi # See https://www.gnu.org/prep/standards/html_node/Directory-Variables.html prefix=/usr/local @@ -70,6 +70,9 @@ printMakefile () { # If fails (eg git not avail), create pseudo version using date. printf '%s' 'PROJECT_VERSION=$(shell' printf '%s' ' ret=$$(git describe --tags 2>/dev/null |sed -E "s;^v;;");' + printf '%s' ' if test -n "$$ret" -a -n "$$(git status --porcelain 2>/dev/null)"; then' + printf '%s' ' ret="$$ret+dirt";' + printf '%s' ' fi;' printf '%s' ' if test -z "$$ret"; then ret=$$(date -u +0.0.0-%Y%m%d.%H%M%S); fi;' printf '%s\n' ' echo "$$ret")' @@ -137,7 +140,7 @@ printMakefile () { printf '%s\n' ' $(MKDIRS) dist' # Create Executable bundle. printf '%s\n' ' $(MKDIRS) build/dist-bin && $(COPYTO) build/dist-bin \' - printf '%s\n' ' README.txt' + printf '%s\n' ' README*' printf '%s\n' ' $(MKDIRS) build/dist-bin/bin && $(COPYTO) build/dist-bin/bin \' printf '%s\n' ' build/bin/*' |