chiark
/
gitweb
/
~mdw
/
cfd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tidy up the shell scripts somewhat.
[cfd]
/
confsubst.in
diff --git
a/confsubst.in
b/confsubst.in
index 285e03122beeec2546c8d9800f6e959f8aa19778..f9ba37bdc455f258a0f94bc8f62cd868ebdbf268 100755
(executable)
--- a/
confsubst.in
+++ b/
confsubst.in
@@
-78,8
+78,7
@@
for fixup; do
*?=*) ;;
*) echo >&2 "$0: bad substitution: $fixup"; exit 1 ;;
esac
- tag=$(echo "$fixup" | sed 's/=.*$//') && \
- value=$(echo "$fixup" | sed 's/^[^=]*=//') && \
+ tag=${fixup%%=*} value=${fixup#*=}
subst="$subst s
\a
@$tag@
\a
$value
\a
g;"
done