Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Commit

Permalink
2008-03-12 Atsushi Enomoto <atsushi@ximian.com>
Browse files Browse the repository at this point in the history
	* removecomments.sh : copied from mcs.


svn path=/trunk/olive/; revision=98020
  • Loading branch information
atsushieno committed Mar 12, 2008
1 parent 51c08f5 commit 0ec3fd2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/ChangeLog
@@ -1,3 +1,7 @@
2008-03-12 Atsushi Enomoto <atsushi@ximian.com>

* removecomments.sh : copied from mcs.

2006-10-22 Atsushi Enomoto <atsushi@ximian.com>

(started to log)
Expand Down
23 changes: 23 additions & 0 deletions tools/removecomments.sh
@@ -0,0 +1,23 @@
#!/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
\#*) ;;
*) echo $f ;;
esac
done
OIFS=$IFS
done

IFS=$OIFS

Expand Down

0 comments on commit 0ec3fd2

Please sign in to comment.