ivars.c: Add a check for classes without instance variables...
[gcc.git] / maintainer-scripts / update_web_docs_libstdcxx_svn
index 514243ddfc2315b5741a4bcc07cf1e5f37887eb3..10d45f5c4eb2a9ca7869ddb3a7bceb7726c99925 100755 (executable)
@@ -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