]> Savannah Git Hosting - gnulib.git/commitdiff
gendocs: do not depend on awk
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Apr 2025 06:49:11 +0000 (23:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Apr 2025 06:55:41 +0000 (23:55 -0700)
* build-aux/gendocs.sh (calcsize): Use shell directly, rather than
depending on awk.  Allow spaces in outdir.  Simplify.

ChangeLog
build-aux/gendocs.sh

index 930d181551252ef262efc34122749e9c297eca33..98ffe323cc7835c9a9abfaf56fc72bfb28d69bcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-27  Paul Eggert  <eggert@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  <bruno@clisp.org>
 
        Make use of gcc's __nonnull_if_nonzero__ attribute.
index f7d862d90d724a23fb555d65709686c30361e582..b73b52425fae3a9a62ffb36368185ef3c6c70d09 100755 (executable)
@@ -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...