]> Savannah Git Hosting - gnulib.git/commitdiff
gnu-web-doc-update: fix updating of manual directory
authorPádraig Brady <P@draigBrady.com>
Mon, 11 Sep 2023 18:31:53 +0000 (19:31 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 14 Sep 2023 10:03:44 +0000 (12:03 +0200)
* build-aux/gnu-web-doc-update: Correctly change to the 'manual' directory,
since $tmp is a relative path.  This avoids removing files
outside of the 'manual' directory.  Broken since commit e979787d.

ChangeLog
build-aux/gnu-web-doc-update

index 1decc34c86c9187fc50032a051cc86b323d1e518..dc25aa3c954c67f4cfcc2f4ae1599ba750e94c44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-09-11  Pádraig Brady  <P@draigBrady.com>
+
+       gnu-web-doc-update: fix updating of manual directory
+       * build-aux/gnu-web-doc-update: Change to the 'manual' directory,
+       since $tmp is a relative path.  This avoids removing files
+       outside of the 'manual' directory.
+
 2023-09-07  Bruno Haible  <bruno@clisp.org>
 
        Don't use 'throw ()' in C++ 11 or newer.
index a804031a4352d456cc1a62dd2e62c74ac522b05d..ae74eea989b10c8b2f5a6631123d4efbe85efab9 100755 (executable)
@@ -2,7 +2,7 @@
 # Run this after each non-alpha release, to update the web documentation at
 # https://www.gnu.org/software/$pkg/manual/
 
-VERSION=2023-03-23.02; # UTC
+VERSION=2023-09-11.20; # UTC
 
 # Copyright (C) 2009-2023 Free Software Foundation, Inc.
 
@@ -182,7 +182,7 @@ $RSYNC -avP "$builddir"/doc/manual/ $tmp/$pkg/manual
   cd $tmp/$pkg
   test -d manual/CVS || $dryrun $CVS add -ko manual
 
-  cd $tmp/$pkg/manual
+  cd manual
 
   # Add all the files.  This is simpler than trying to add only the
   # new ones because of new directories