Update msvc README file.
[mono.git] / mcs / tools / removecomments.sh
1 #!/bin/sh
2
3 # Remove comments from .sources files since this usage of IFS is unsuable inside make
4 #  (trouble with newlines)
5
6 source_files="$@"
7
8 OIFS=$IFS
9
10 for f in $source_files ; do
11         IFS='
12 \r'
13         for f in `cat $f` ; do
14                 case $f in
15                         \#*) ;;
16                         *) echo $f ;;
17                 esac
18         done
19         OIFS=$IFS
20 done
21
22 IFS=$OIFS
23