Skip to content

Commit

Permalink
gnu-web-doc-update: fix addition of new files
Browse files Browse the repository at this point in the history
If there were already added (emnpty) dirs,
then cvs aborts the add with the message:
  cvs [add aborted]: there is a version in <./dirname> already

* build-aux/gnu-web-doc-update: Add directories separately
to the addition of files, to avoid the above issue
impacting the addition of files.
  • Loading branch information
pixelb committed Jan 20, 2016
1 parent 914feb6 commit 6465306
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2016-01-20 Pádraig Brady <[email protected]>

gnu-web-doc-update: fix addition of new files
If there were already added (emnpty) dirs,
then cvs aborts the add with the message:
cvs [add aborted]: there is a version in <./dirname> already
* build-aux/gnu-web-doc-update: Add directories separately
to the addition of files, to avoid the above issue
impacting the addition of files.

2016-01-19 Daiki Ueno <[email protected]>

utimens-tests: avoid pulling gettext .m4 files
Expand Down
11 changes: 6 additions & 5 deletions build-aux/gnu-web-doc-update
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,12 @@ $RSYNC -avP "$builddir"/doc/manual/ $tmp/$pkg/manual
cd $tmp/$pkg/manual

# Add all the files. This is simpler than trying to add only the
# new ones because of new directories: it would require iterating on
# adding the outer directories, and then their contents.
#
# find guarantees that we add outer directories first.
find . -name CVS -prune -o -print \
# new ones because of new directories
# First add non empty dirs individually
find . -name CVS -prune -o -type d \! -empty -print \
| $XARGS -n1 --no-run-if-empty -- $dryrun $CVS add -ko
# Now add all files
find . -name CVS -prune -o -type f -print \
| $XARGS --no-run-if-empty -- $dryrun $CVS add -ko

# Report/Remove stale files
Expand Down

0 comments on commit 6465306

Please sign in to comment.