This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

genini: comments


setup.html says (emphasis mine):

> Lines that *begin* with '#' are considered to be comments and are 
> ignored by the setup.ini generator.

Some of my sdesc/ldesc include a '#' not in the context of a comment
(e.g. C#), and this was causing the rest of the field to be chomp()ed,
mangling the resulting setup.ini.

Patch attached.


Yaakov


2010-06-08  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

	* genini (parse): comments are only allowed at the beginning of a line.

Index: genini
===================================================================
RCS file: /cvs/cygwin-apps/genini/genini,v
retrieving revision 1.12
diff -u -r1.12 genini
--- genini	14 Mar 2010 18:31:30 -0000	1.12
+++ genini	9 Jun 2010 04:09:13 -0000
@@ -114,7 +114,7 @@
     open(\*F, '<', $f) or die "$0: couldn't open $f - $!\n";
     while (<F>) {
 	chomp;
-	s/#.*$//o;
+	s/^#.*$//o;
 	s/^\s+//o;
 	s/(\S)\s+$/$1/o;
 	length or next;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]