From b627374773e3256fbd08fb204fcced3233b9c97e Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser (@tux-six) Date: Wed, 6 Jul 2022 22:23:22 +0200 Subject: 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' --- configure | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 419e9a8..d2f1fe7 100755 --- a/configure +++ b/configure @@ -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/*' -- cgit v1.1