SOURCES: intltool-bug413461.patch (NEW) - fix http://bugzilla.gnom...
megabajt
megabajt at pld-linux.org
Sun Mar 4 17:14:39 CET 2007
Author: megabajt Date: Sun Mar 4 16:14:39 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix http://bugzilla.gnome.org/show_bug.cgi?id=413461
---- Files affected:
SOURCES:
intltool-bug413461.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/intltool-bug413461.patch
diff -u /dev/null SOURCES/intltool-bug413461.patch:1.1
--- /dev/null Sun Mar 4 17:14:39 2007
+++ SOURCES/intltool-bug413461.patch Sun Mar 4 17:14:34 2007
@@ -0,0 +1,25 @@
+--- trunk/intltool-update.in.in 2007/02/14 04:12:19 671
++++ trunk/intltool-update.in.in 2007/03/02 16:43:19 674
+@@ -563,13 +563,21 @@
+ exit 1;
+ }
+
++sub isIntltoolExtractInPath
++{
++ my ($file) = @_;
++ # If either a file exists, or when run it returns 0 exit status
++ return 1 if ((-x $file) or (system("$file >/dev/null") == 0));
++ return 0;
++}
++
+ sub GenerateHeaders
+ {
+ my $EXTRACT = $ENV{"INTLTOOL_EXTRACT"} || "intltool-extract";
+
+ ## Generate the .h header files, so we can allow glade and
+ ## xml translation support
+- if (! -x "$EXTRACT")
++ if (! isIntltoolExtractInPath("$EXTRACT"))
+ {
+ print STDERR "\n *** The intltool-extract script wasn't found!"
+ ."\n *** Without it, intltool-update can not generate files.\n";
================================================================
More information about the pld-cvs-commit
mailing list