1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
REFERENCES=$(egrep "ProjectReference" "$1" | \
egrep -o "refto=\"[[:alnum:].-]+," | \
sed s/refto=\"// | sed s/,// | sort)
OLD_IFS=$IFS
IFS="
"
echo "REFERENCES = \\" >> Makefile.am
for REFERENCE in $REFERENCES ; do
echo "\t$REFERENCE \\" >> Makefile.am
done
|