~do-plugins/do-plugins/trunk

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

RESOURCES=$(egrep "EmbedAsResource" "$1" | \
            egrep -o "\".*\.(xml|png|stetic)\"" | \
            sed s/\"// | sed s/\"// | sort)

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