travis: correct libdrm required regex to also track libdrm itself
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 1 Feb 2017 22:30:25 +0000 (22:30 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Feb 2017 11:14:10 +0000 (11:14 +0000)
The current regex was tracking only the libdrm_foo packages, while with
recent changed we bumped only (and rightfully so) libdrm.

Fix the regex to track any libdrm package.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
.travis.yml

index dfbc052a7df084cec464a60ccbf4905a105bd732..e8426e96a2ec90e9f6420f725cb1b3046f141c59 100644 (file)
@@ -47,7 +47,7 @@ install:
 
   # Since libdrm gets updated in configure.ac regularly, try to pick up the
   # latest version from there.
-  - for line in `grep "^LIBDRM_.*_REQUIRED=" configure.ac`; do
+  - for line in `grep "^LIBDRM.*_REQUIRED=" configure.ac`; do
       old_ver=`echo $LIBDRM_VERSION | sed 's/libdrm-//'`;
       new_ver=`echo $line | sed 's/.*REQUIRED=//'`;
       if `echo "$old_ver,$new_ver" | tr ',' '\n' | sort -Vc 2> /dev/null`; then