OSDN Git Service

* gcc_release (build_diffs): Add diagnostics in case we cannot
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 May 2003 13:26:23 +0000 (13:26 +0000)
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 May 2003 13:26:23 +0000 (13:26 +0000)
generate a specific diff file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67186 138bc75d-0d04-0410-961f-82ee72b054a4

maintainer-scripts/ChangeLog
maintainer-scripts/gcc_release

index b6dfc1c..2bd6bd5 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
+
+       * gcc_release (build_diffs): Add diagnostics in case we cannot
+       generate a specific diff file.
+
 2003-05-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
 
        * gcc_release (build_sources): Only update ChangeLog files which
index 58538ff..df6ad80 100755 (executable)
@@ -306,7 +306,11 @@ build_diffs() {
   for f in gcc gcc-ada gcc-g++ gcc-g77 gcc-java gcc-objc gcc-testsuite gcc-core; do
     old_tar=${old_dir}/${f}-${old_vers}.tar.gz
     new_tar=${WORKING_DIRECTORY}/${f}-${RELEASE}.tar.gz
-    if [ -e $old_tar ] && [ -e $new_tar ]; then
+    if [ ! -e $old_tar ]; then
+      inform "$old_tar not found; not generating diff file"
+    elif [ ! -e $new_tar ]; then
+      inform "$new_tar not found; not generating diff file"
+    else
       build_diff $old_tar gcc-${old_vers} $new_tar gcc-${RELEASE} \
         ${f}-${old_vers}-${RELEASE}.diff.gz
     fi