summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <dobey@gnome.org>2009-07-12 17:49:34 -0400
committerTarmac <>2009-07-12 17:49:34 -0400
commit8145d0bc83487c58802332347bfb7bdb05a17e00 (patch)
tree5e39b2aa2c453bcd29f45406bda6072936f06f96
parent067db8e152280f2cfaa10026867de07a08ce2d3e (diff)
parent3e93ba450f7a23ed7a7ff33a53872cc81c42db2c (diff)
downloadintltool-8145d0bc83487c58802332347bfb7bdb05a17e00.tar.gz
Handle m4_esyscmd usage in the package version variable
-rw-r--r--intltool-update.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/intltool-update.in b/intltool-update.in
index 262027d..cd92b51 100644
--- a/intltool-update.in
+++ b/intltool-update.in
@@ -1142,6 +1142,17 @@ sub FindPackageName
($name, $version) = ($1, $2);
$bugurl = $3 if (defined $3);
+ # Handle m4_esyscmd
+ # FIXME: We should do this in a more generic way that works for all vars
+ if ($version =~ /m4_esyscmd\([\[]?([^\)\]]+)/)
+ {
+ my $cwd = getcwd ();
+ chdir ("$SRCDIR/..");
+ $version = qx($1);
+ chdir ($cwd);
+ }
+
+
$name =~ s/[\[\]\s]//g;
$version =~ s/[\[\]\s]//g;
$bugurl =~ s/[\[\]\s]//g if (defined $bugurl);