summaryrefslogtreecommitdiff
path: root/config/config-subst
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2002-05-23 17:06:46 +0000
committerKeith Packard <keithp@keithp.com>2002-05-23 17:06:46 +0000
commit2eafe0904dfcd08e87d125ff6893cb4d4f5a4a95 (patch)
tree98f8f33dc19e74a06cf11c1b3f1519e9e2215e5a /config/config-subst
parent1c20b1cc0b7a27f29634f80a9d48cbed8aabc7a9 (diff)
Add pkgconfig control file and fontconfig-config script
Diffstat (limited to 'config/config-subst')
-rw-r--r--config/config-subst8
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