aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/Xft/config/config-subst
blob: 5907e03286ab94ac2ddd40f5e1acab305158dbfc (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
script=config-subst.$$
trap "rm $script" 0
rm -f $script
for i in ${1+"$@"}; do
	var="`echo "$i" | sed 's/=.*$//'`"
	val="`echo "$i" | sed 's/^[^=]*=//'`"
	echo "s;@$var@;$val;" >> $script
done
sed -f $script