win-includes 143 Bytes
Newer Older
joreland@mysql.com's avatar
joreland@mysql.com committed
1 2 3 4 5 6 7 8
#!/bin/sh

dst=$1
shift

out=`echo $* | sed 's/-I\([^ ]*\)/\/I "\1"/g'` 
sed -e "s!@includes@!$out!g" $dst > /tmp/$dst.$$
mv /tmp/$dst.$$ $dst