blob: 9a6ce4d9d06ed0048e62f775467af5f6fec4bd6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
# Remove comments from .sources files since this usage of IFS is unsuable inside make
# (trouble with newlines)
source_files="$@"
OIFS=$IFS
for f in $source_files ; do
IFS='
'
for f in `cat $f` ; do
case $f in
\#*) ;;
*)
# some lines in .sources may contain quick syntax to exclude files i.e.:
# ../dir/*.cs:File1.cs,File2.cs (include everything except File1.cs and File2.cs)
# let's drop that ":files" suffix
for line in `echo $f | cut -d \: -f 1` ; do
echo $line
done
esac
done
OIFS=$IFS
done
IFS=$OIFS
|