aboutsummaryrefslogtreecommitdiffstats
path: root/tools/process-x11-xcb.pl
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-06-03 02:05:52 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-06-03 02:05:52 +0000
commit584595fab3592502a684200154e545a22483cee8 (patch)
tree2308b0afeb4ef22123eaaa62df5d2e12ee9331a8 /tools/process-x11-xcb.pl
parent9c859f5f10195dac1a5ebc92d664d636f4a543ad (diff)
From Peter Harris via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4820 :
Mesa moved its API description file again. Also, while I'm here, I noticed that they stopped using signed tags, so add --tags to "git describe" for a better description of the mesa version used to build the X11 dissector. svn path=/trunk/; revision=33067
Diffstat (limited to 'tools/process-x11-xcb.pl')
-rwxr-xr-xtools/process-x11-xcb.pl13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/process-x11-xcb.pl b/tools/process-x11-xcb.pl
index 9a370d613d..9692e34394 100755
--- a/tools/process-x11-xcb.pl
+++ b/tools/process-x11-xcb.pl
@@ -146,12 +146,11 @@ my $error;
# glRender sub-op output files
my $enum;
-
-my $mesadir = 'mesa/src/mesa/glapi';
-if (-d 'mesa/src/mesa/glapi/gen') {
- # Mesa API definitions moved recently (February 22, 2010)
- $mesadir = 'mesa/src/mesa/glapi/gen';
-}
+# Mesa API definitions keep moving
+my @mesas = ('mesa/src/mapi/glapi/gen', # 2010-04-26
+ 'mesa/src/mesa/glapi/gen', # 2010-02-22
+ 'mesa/src/mesa/glapi'); # 2004-05-18
+my $mesadir = (grep { -d } @mesas)[0];
sub mesa_category_start {
my ($t, $elt) = @_;
@@ -1284,7 +1283,7 @@ sub find_version {
# this will generate an error on stderr if git isn't in our $PATH
# but that's OK. The version is still set to 'unknown' in that case
# and at least the operator could see it.
- my $ver = `git --git-dir=$lib/.git describe`;
+ my $ver = `git --git-dir=$lib/.git describe --tags`;
$ver //= 'unknown';
chomp $ver;
return $ver;