X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/cb0e97d3d40a6b186bdf8639fceb27dc66927bb5..d4f7fab64222a7d3ce15e86c5c7b32f7cdd3ce93:/scripts/fix-gnulib.pl diff --git a/scripts/fix-gnulib.pl b/scripts/fix-gnulib.pl index ce27521..640f1cd 100755 --- a/scripts/fix-gnulib.pl +++ b/scripts/fix-gnulib.pl @@ -1,6 +1,6 @@ #!/usr/bin/env perl # -# Copyright © 2011-2014, 2020-2022 Nick Bowler +# Copyright © 2011-2014, 2020-2023 Nick Bowler # # Prepare the Gnulib tree for inclusion into a non-recursive automake build. # While the output of gnulib-tool is "include"-able if the --makefile-name @@ -169,12 +169,12 @@ EOF # something actually depends on it (which is typically the case). if (/^noinst_LIBRARIES.*libgnu.a/) { s/^noinst/EXTRA/; - $for_library //= 0; + $for_library = 0 unless defined $for_library; $use_libtool = 0; } if (/^noinst_LTLIBRARIES.*libgnu.la/) { s/^noinst/EXTRA/; - $for_library //= 1; + $for_library = 1 unless defined $for_library; $use_libtool = 1; }