~iwarford/do-plugins/inline-google-fix

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

FILES=$(egrep "subtype=\"Code\" buildaction=\"Compile\"" "$1" | \
        egrep -o "\".*\.cs" | \
        sed s/\"// | sort)

OLD_IFS=$IFS
IFS="
"
echo "FILES = \\" >> Makefile.am
for FILE in $FILES ; do
    echo "\t$FILE \\" >> Makefile.am
done