The announce-gen script produced this output for me:

Here are the compressed sources:
  https://ftp.gnu.org/gnu/gettext/gettext-0.23.tar.gz   (0      
gettext-0.23.tar.gz)
  https://ftp.gnu.org/gnu/gettext/gettext-0.23.tar.lz   (0      
gettext-0.23.tar.lz)
  https://ftp.gnu.org/gnu/gettext/gettext-0.23.tar.xz   (0      
gettext-0.23.tar.xz)

The cause it that it does not support symlinks. With the patch below,
it does and produces the expected output:

Here are the compressed sources:
  https://ftp.gnu.org/gnu/gettext/gettext-0.23.tar.gz   (28MB)
  https://ftp.gnu.org/gnu/gettext/gettext-0.23.tar.lz   (8.7MB)
  https://ftp.gnu.org/gnu/gettext/gettext-0.23.tar.xz   (11MB)


2024-12-01  Bruno Haible  <br...@clisp.org>

        announce-gen: Fix bug when accessing symlinks.
        * build-aux/announce-gen (sizes): Pass the option -L to 'du'.

diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 4b7ba07165..be17541c89 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -124,7 +124,7 @@ sub sizes (@)
   my %res;
   foreach my $f (@file)
     {
-      my $cmd = "du -h $f";
+      my $cmd = "du -h -L $f";
       my $t = `$cmd`;
       # FIXME-someday: give a better diagnostic, a la $PROCESS_STATUS
       $@




Reply via email to