diff options
Diffstat (limited to 'config/config-subst')
-rw-r--r-- | config/config-subst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/config-subst b/config/config-subst new file mode 100644 index 0000000..c3436e7 --- /dev/null +++ b/config/config-subst @@ -0,0 +1,8 @@ +#!/bin/sh +exprs="" +for i in ${1+"$@"}; do + var="`echo $i | sed 's/=.*$//'`" + val="`echo $i | sed 's/^[^=]*=//'`" + exprs="$exprs -e s;@$var@;$val;" +done +sed $exprs |