Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg Move dashes to the front of bracket expres...



details:   https://anonhg.NetBSD.org/src/rev/2fa8cc0c14d1
branches:  trunk
changeset: 339765:2fa8cc0c14d1
user:      aymeric <aymeric%NetBSD.org@localhost>
date:      Sat Aug 08 23:06:36 2015 +0000

description:
Move dashes to the front of bracket expressions. Suggested by dholland@.

diffstat:

 external/mit/xorg/xorg-pkg-ver.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 00598404770b -r 2fa8cc0c14d1 external/mit/xorg/xorg-pkg-ver.mk
--- a/external/mit/xorg/xorg-pkg-ver.mk Sat Aug 08 22:26:59 2015 +0000
+++ b/external/mit/xorg/xorg-pkg-ver.mk Sat Aug 08 23:06:36 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: xorg-pkg-ver.mk,v 1.6 2015/08/08 22:26:59 aymeric Exp $
+#      $NetBSD: xorg-pkg-ver.mk,v 1.7 2015/08/08 23:06:36 aymeric Exp $
 
 # when including this make sure PROG is set so that $X11SRCDIR.$PROG
 # is a valid setting.  set XORG_PKG_VER_PROG if PROG is wrong.
@@ -24,7 +24,7 @@
 
 XORG_PKG_PACKAGE_STRING!= \
        awk -F= '/^PACKAGE_STRING=/ {                           \
-            match($$2, "[a-zA-Z_-]+[   ]+([0-9]+\\.)+[0-9]+"); \
+            match($$2, "[-_a-zA-Z]+[   ]+([0-9]+\\.)+[0-9]+"); \
             string = substr($$2, RSTART, RLENGTH);             \
             print string;                                      \
             exit 0;                                            \
@@ -35,7 +35,7 @@
 
 XORG_PKG_PACKAGE_NAME!= \
        awk -F= '/^PACKAGE_NAME=/ {                             \
-            match($$2, "'"'"'[a-zA-Z0-9_-]+'"'"'");            \
+            match($$2, "'"'"'[-_a-zA-Z0-9]+'"'"'");            \
             name = substr($$2, RSTART, RLENGTH);               \
             print name;                                        \
             exit 0;                                            \



Home | Main Index | Thread Index | Old Index