repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
tools
/
removecomments.sh
blob
2d8cb27023a6d8813d0ccc6847b71bdfc9721b65
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
'
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