2002-05-23 19:06:46 +02:00
|
|
|
#!/bin/sh
|
2002-05-24 01:00:46 +02:00
|
|
|
script=config-subst.$$
|
|
|
|
trap "rm $script" 0
|
|
|
|
rm -f $script
|
2002-05-23 19:06:46 +02:00
|
|
|
for i in ${1+"$@"}; do
|
2002-05-24 01:00:46 +02:00
|
|
|
var="`echo "$i" | sed 's/=.*$//'`"
|
|
|
|
val="`echo "$i" | sed 's/^[^=]*=//'`"
|
|
|
|
echo "s;@$var@;$val;" >> $script
|
2002-05-23 19:06:46 +02:00
|
|
|
done
|
2002-05-24 01:00:46 +02:00
|
|
|
sed -f $script
|