aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index a50278a..e23f92e 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,9 @@
#!/bin/sh
set -eu
+DATE=2021-01-26
+VERSION=0.1.2
+
# shellcheck disable=2068
for f in $@; do
case "$f" in
@@ -23,6 +26,17 @@ done
PREFIX="${CLI_PREFIX:-/usr/local}"
-sed "s:@PREFIX@:$PREFIX:g" Makefile.in > Makefile
+OUT_FILES='
+Makefile
+'
+
+for f in $OUT_FILES; do
+ printf 'generating "%s"...\n' "$f"
+ sed "$f.in" \
+ -e "s:@PREFIX@:$PREFIX:g" \
+ -e "s:@VERSION@:$VERSION:g" \
+ -e "s:@DATE@:$DATE:g" \
+ > "$f"
+done
echo Done. >&2