Merge lp:~dobey/intltool/m4esyscmd-support into lp:intltool

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 697
Merged at revision: not available
Proposed branch: lp:~dobey/intltool/m4esyscmd-support
Merge into: lp:intltool
Diff against target: None lines
To merge this branch: bzr merge lp:~dobey/intltool/m4esyscmd-support

This proposal supersedes a proposal from 2009-07-12.

Commit message

Handle m4_esyscmd usage in the package version variable

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'intltool-update.in'
2--- intltool-update.in 2009-04-21 01:58:31 +0000
3+++ intltool-update.in 2009-07-12 21:43:49 +0000
4@@ -1142,6 +1142,17 @@
5 ($name, $version) = ($1, $2);
6 $bugurl = $3 if (defined $3);
7
8+ # Handle m4_esyscmd
9+ # FIXME: We should do this in a more generic way that works for all vars
10+ if ($version =~ /m4_esyscmd\([\[]?([^\)\]]+)/)
11+ {
12+ my $cwd = getcwd ();
13+ chdir ("$SRCDIR/..");
14+ $version = qx($1);
15+ chdir ($cwd);
16+ }
17+
18+
19 $name =~ s/[\[\]\s]//g;
20 $version =~ s/[\[\]\s]//g;
21 $bugurl =~ s/[\[\]\s]//g if (defined $bugurl);

Subscribers

People subscribed via source and target branches

to all changes: