[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
announce-gen: Fix bug when accessing symlinks
From: |
Bruno Haible |
Subject: |
announce-gen: Fix bug when accessing symlinks |
Date: |
Sun, 01 Dec 2024 13:51:55 +0100 |
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 <bruno@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
$@
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- announce-gen: Fix bug when accessing symlinks,
Bruno Haible <=