Author: fielding
Date: Tue Jun 3 17:07:17 2008
New Revision: 662930
URL: http://svn.apache.org/viewvc?rev=662930&view=rev
Log:
allow files to have comments with # prefix
Modified:
incubator/sling/trunk/etc/notice/mknotice
Modified: incubator/sling/trunk/etc/notice/mknotice
URL:
http://svn.apache.org/viewvc/incubator/sling/trunk/etc/notice/mknotice?rev=662930&r1=662929&r2=662930&view=diff
==============================================================================
--- incubator/sling/trunk/etc/notice/mknotice (original)
+++ incubator/sling/trunk/etc/notice/mknotice Tue Jun 3 17:07:17 2008
@@ -82,7 +82,7 @@
done | cut -d= -f2
}
-#Ćcollect dependencies, map them to their notice
+# collect dependencies, map them to their notice
# files and concatenate those
generate_notice() {
set_project_name
@@ -106,8 +106,8 @@
echo ""
echo ""
done
- [[ -f $LOCAL_NOTICE ]] && cat $LOCAL_NOTICE
+ [[ -f $LOCAL_NOTICE ]] && egrep '^($|[^#])' $LOCAL_NOTICE
) | cat -s
}
-generate_notice
\ No newline at end of file
+generate_notice