summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndreas Fankhauser (@tux-six)2022-07-06 22:23:22 +0200
committerAndreas Fankhauser (@tux-six)2022-07-06 22:23:22 +0200
commitb627374773e3256fbd08fb204fcced3233b9c97e (patch)
tree0ce631914071a559441698d3d7a84e104d7b4395 /configure
parent0d745cdb688eab40094c434d2564515705ce686b (diff)
downloadbulk-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-xconfigure7
1 files changed, 5 insertions, 2 deletions
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/*'