* build-aux/gendocs.sh (calcsize): Use shell directly, rather than
depending on awk. Allow spaces in outdir. Simplify.
+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.
# 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.
#
# 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...