Permalink
Browse files

2008-03-12 Atsushi Enomoto <atsushi@ximian.com>

	* removecomments.sh : copied from mcs.


svn path=/trunk/olive/; revision=98020
  • Loading branch information...
1 parent 51c08f5 commit 0ec3fd20a4e29275957fe42d794671bd69c46d11 @atsushieno atsushieno committed Mar 12, 2008
Showing with 27 additions and 0 deletions.
  1. +4 −0 tools/ChangeLog
  2. +23 −0 tools/removecomments.sh
View
4 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)
View
23 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

0 comments on commit 0ec3fd2

Please sign in to comment.