bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib-tool.sh: Don't emit an unnecessary './' path component.


From: Collin Funk
Subject: gnulib-tool.sh: Don't emit an unnecessary './' path component.
Date: Wed, 3 Apr 2024 05:26:04 -0700
User-agent: Mozilla Thunderbird

I'm continuing to go through GNU packages and testing them with
GNULIB_TOOL_IMPL=sh+py.

Texinfo doesn't use the bootstrap script but the README-hacking file
is easy to follow:

    To update the gnulib files, get a checkout of gnulib in a separate
    directory, then run, say

       ../gnulib/gnulib-tool --add-import

    in your top-level Texinfo directory and

       ../../../../gnulib/gnulib-tool --add-import

    under tp/Texinfo/XS.  (gnulib-tool is in the gnulib source tree.)

The first one under the root directory works as expected. The second
under tp/Texinfo/XS fails with this diff:

--- /home/collin/.local/src/texinfo/tp/Texinfo/XS/gnulib/lib/Makefile.am        
2024-04-03 04:25:14.105131041 -0700
+++ 
/home/collin/.local/src/texinfo/tp/Texinfo/glpyemzDvH/gnulib/lib/Makefile.am    
    2024-04-03 04:25:02.276104588 -0700
@@ -318,7 +318,7 @@
 ## begin gnulib module havelib
 
 
-EXTRA_DIST += $(top_srcdir)/./config.rpath
+EXTRA_DIST += $(top_srcdir)/config.rpath
 
 ## end   gnulib module havelib

This patch fixes it by checking if "$auxdir" is ".". If so, then we
just prepend the file with '$(top_srcdir)/' instead of
'$(top_srcdir)/'"$auxdir".

Collin

Attachment: 0001-gnulib-tool.sh-Don-t-emit-an-unnecessary-.-path-comp.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]