intltool/intltool-0.35.5-path.patch
Petr Šabata e5400dc676 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/intltool#0d47a194dee1f115055287e6463cd0832aabb130
2020-10-15 13:40:18 +02:00

26 lines
771 B
Diff

--- 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";