diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-07 19:58:18 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-07 19:58:18 +0000 |
commit | 56222dc484976ab984be1416b31b2151ee619ee6 (patch) | |
tree | 4e499893b8c61bfb09665590197cab5f4691fdbc /maintainer-scripts | |
parent | f5f0b02821e806eaab2952957fe29030d52416d1 (diff) | |
download | gcc-56222dc484976ab984be1416b31b2151ee619ee6.tar.gz |
* update_web_docs_libstdcxx_svn: No longer ignore all output from
the actual copy process.
Check the exit code of the actual copy process; diagnose problems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197558 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts')
-rw-r--r-- | maintainer-scripts/ChangeLog | 6 | ||||
-rwxr-xr-x | maintainer-scripts/update_web_docs_libstdcxx_svn | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index b719d684da6..c0503f08635 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,3 +1,9 @@ +2013-04-07 Gerald Pfeifer <gerald@pfeifer.com> + + * update_web_docs_libstdcxx_svn: No longer ignore all output from + the actual copy process. + Check the exit code of the actual copy process; diagnose problems. + 2013-03-16 Jakub Jelinek <jakub@redhat.com> * crontab: Enable snapshots from gcc-4_8-branch. diff --git a/maintainer-scripts/update_web_docs_libstdcxx_svn b/maintainer-scripts/update_web_docs_libstdcxx_svn index 514243ddfc2..10d45f5c4eb 100755 --- a/maintainer-scripts/update_web_docs_libstdcxx_svn +++ b/maintainer-scripts/update_web_docs_libstdcxx_svn @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # "sh update_web_docs_libstdcxx.sh" @@ -39,7 +39,12 @@ rm -f Makefile # copy the tree to the onlinedocs area, preserve directory structure #find . -depth -print | cpio -pdv $WWWDIR -find . -depth -print | cpio -pd $WWWDIR > /dev/null 2>&1 +find . -depth -print | cpio -pd $WWWDIR 2>&1 | grep -v "newer or same age version exists" + +err=${PIPESTATUS[1]} +if [ $err -gt 0 ]; then + printf "\nCopying failed with error code %d.\n" $err +fi cd / /bin/rm -rf $WORKDIR |