[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tools / removecomments.sh
blob9a6ce4d9d06ed0048e62f775467af5f6fec4bd6f
1 #!/bin/sh
3 # Remove comments from .sources files since this usage of IFS is unsuable inside make
4 # (trouble with newlines)
6 source_files="$@"
8 OIFS=$IFS
10 for f in $source_files ; do
11 IFS='
13 for f in `cat $f` ; do
14 case $f in
15 \#*) ;;
17 # some lines in .sources may contain quick syntax to exclude files i.e.:
18 # ../dir/*.cs:File1.cs,File2.cs (include everything except File1.cs and File2.cs)
19 # let's drop that ":files" suffix
20 for line in `echo $f | cut -d \: -f 1` ; do
21 echo $line
22 done
23 esac
24 done
25 OIFS=$IFS
26 done
28 IFS=$OIFS