~mdw
/
mLib
/ 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.
[mLib]
/
confsubst.in
diff --git
a/confsubst.in
b/confsubst.in
index
285e031
..
f9ba37b
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