* build-aux/gendocs.sh (calcsize): Use shell directly, rather than
depending on awk.  Allow spaces in outdir.  Simplify.
---
 ChangeLog            | 6 ++++++
 build-aux/gendocs.sh | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 930d181551..98ffe323cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-27  Paul Eggert  <egg...@cs.ucla.edu>
+
+       gendocs: do not depend on awk
+       * build-aux/gendocs.sh (calcsize): Use shell directly, rather than
+       depending on awk.  Allow spaces in outdir.  Simplify.
+
 2025-04-27  Bruno Haible  <br...@clisp.org>
 
        Make use of gcc's __nonnull_if_nonzero__ attribute.
diff --git a/build-aux/gendocs.sh b/build-aux/gendocs.sh
index f7d862d90d..b73b52425f 100755
--- a/build-aux/gendocs.sh
+++ b/build-aux/gendocs.sh
@@ -2,7 +2,7 @@
 # gendocs.sh -- generate a GNU manual in many formats.  This script is
 #   mentioned in maintain.texi.  See the help message below for usage details.
 
-scriptversion=2025-01-01.00
+scriptversion=2025-04-26.12
 
 # Copyright 2003-2025 Free Software Foundation, Inc.
 #
@@ -232,8 +232,8 @@ fi
 # Function to return size of $1 in something resembling kilobytes.
 calcsize()
 {
-  size=`ls -ksl $1 | awk '{print $1}'`
-  echo $size
+  set `ls -ks "$1"`
+  echo $1
 }
 
 # copy_images OUTDIR HTML-FILE...
-- 
2.49.0


Reply via email to