You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.1 KiB

  1. https://bugs.launchpad.net/intltool/+bug/1490906
  2. fix warnings w/newer perl:
  3. Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*)\${ <-- HERE ?([A-Z_]+)}?(.*)$/ at /usr/bin/intltool-update line 1065.
  4. --- a/intltool-update.in
  5. +++ b/intltool-update.in
  6. @@ -1062,7 +1062,7 @@
  7. }
  8. }
  9. - if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/)
  10. + if ($str =~ /^(.*)\$\{?([A-Z_]+)}?(.*)$/)
  11. {
  12. my $rest = $3;
  13. my $untouched = $1;
  14. @@ -1190,10 +1190,10 @@
  15. $name =~ s/\(+$//g;
  16. $version =~ s/\(+$//g;
  17. - $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
  18. - $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
  19. - $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
  20. - $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
  21. + $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
  22. + $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
  23. + $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
  24. + $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
  25. }
  26. if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)[,]?([^,\)]+)?/m)
  27. @@ -1219,11 +1219,11 @@
  28. $version =~ s/\(+$//g;
  29. $bugurl =~ s/\(+$//g if (defined $bugurl);
  30. - $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
  31. - $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
  32. - $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
  33. - $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
  34. - $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\${?\w+}?/);
  35. + $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
  36. + $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
  37. + $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
  38. + $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
  39. + $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+}?/);
  40. }
  41. # \s makes this not work, why?