From 0a1c5051cbff88d2ff62a45bab0063a6fb78b27c Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Tue, 27 May 2003 15:26:23 +0200 Subject: [PATCH] gcc_release (build_diffs): Add diagnostics in case we cannot generate a specific diff file. * gcc_release (build_diffs): Add diagnostics in case we cannot generate a specific diff file. From-SVN: r67186 --- maintainer-scripts/ChangeLog | 5 +++++ maintainer-scripts/gcc_release | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/maintainer-scripts/ChangeLog b/maintainer-scripts/ChangeLog index b6dfc1cbed7..2bd6bd5f5ab 100644 --- a/maintainer-scripts/ChangeLog +++ b/maintainer-scripts/ChangeLog @@ -1,3 +1,8 @@ +2003-05-27 Gerald Pfeifer + + * gcc_release (build_diffs): Add diagnostics in case we cannot + generate a specific diff file. + 2003-05-24 Gerald Pfeifer * gcc_release (build_sources): Only update ChangeLog files which diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release index 58538ffed16..df6ad80ae2f 100755 --- a/maintainer-scripts/gcc_release +++ b/maintainer-scripts/gcc_release @@ -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