OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-re Date: 12-Nov-2002 15:23:18 Branch: HEAD Handle: 2002111214231800 Modified files: openpkg-re openpkg-index Log: since commands hide as comments we need to remove comments first Summary: Revision Changes Path 1.5 +3 -3 openpkg-re/openpkg-index ____________________________________________________________________________ Index: openpkg-re/openpkg-index ============================================================ $ cvs diff -u -r1.4 -r1.5 openpkg-index --- openpkg-re/openpkg-index 12 Nov 2002 13:47:32 -0000 1.4 +++ openpkg-re/openpkg-index 12 Nov 2002 14:23:18 -0000 1.5 @@ -121,9 +121,6 @@ # combine multilines $s =~ s/\\\n/ /sg; - # remove comments - $s =~ s/^\s*#.*?\n//mg; - # # map conditional variable macros # @@ -231,6 +228,9 @@ my($s) = @_; my(%map); my($a); + + # remove comments + $s =~ s/^\s*#.*?\n//mg; # map commands $s =~ s/^%(ifdef|ifndef|if|define|endif|\{)/#$1/mg; ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]