Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=wipv.git;a=commitdiff;h=a6db462f3d7ce7bd69fe976b1ee501dae2dc68be

commit a6db462f3d7ce7bd69fe976b1ee501dae2dc68be
Author: James Buren <r...@frugalware.org>
Date:   Tue Sep 7 02:31:15 2010 -0500

generatesyntax
* fix a bug in heuristics when sed is used with -r

diff --git a/tools/generatesyntax b/tools/generatesyntax
index 541fd7e..ea25ead 100755
--- a/tools/generatesyntax
+++ b/tools/generatesyntax
@@ -79,8 +79,8 @@ FUNCTIONS="Finclude"
# Assemble names of all functions
FUNCTIONS="$FUNCTIONS $(
grep -h -o -E '^\w+\(\)\s*{?' $SCHEMAS |
-          sed -r 's|[\(\){ \t]||g'               |
-          sed -r 's|^__.*$||'                    |
+          sed 's|[(){ \t]||g'                    |
+          sed 's|^__.*$||'                       |
sort -u
)"

@@ -90,13 +90,13 @@ VARIABLES+=" up2date source sha1sums signatures groups 
archs backup depends"
VARIABLES+=" makedepends rodepends conflicts provides removes replaces options"
VARIABLES+=" subpkgs subdescs subdescs_localized sublicense subreplaces"
VARIABLES+=" subgroups subdepends subrodepends subremoves subconflicts"
-VARIABLES+=" subprovides subbackup subinstall suboptions subarchs"
+VARIABLES+=" subprovides subbackup subinstall suboptions subarchs CFLAGS 
LDFLAGS"

# Assemble names of all variables
VARIABLES="$VARIABLES $(
grep -h -E -o '(\$(F|_F_)\w+|(F|_F_)\w+=)' $SCHEMAS |
-          sed -r 's|[\$=]||g'                                 |
-          sed -r 's|^[A-Z_]+$||'                              |
+          sed 's|[\$=]||g'                                    |
+          sed 's|^[A-Z_]\+$||'                                |
sort -u
)"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to