aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-04-22 21:48:18 +0000
committerFred Fish <fnf@specifix.com>1992-04-22 21:48:18 +0000
commit3a63a5f515068e867f4fd3dfd0922c1602101dc2 (patch)
treee91b17321331ecc8d2ac038300af9c398a3657bc
parent952131da03eab6f6eebfd41818bef84fe0f8bf7b (diff)
downloadgdb-3a63a5f515068e867f4fd3dfd0922c1602101dc2.zip
gdb-3a63a5f515068e867f4fd3dfd0922c1602101dc2.tar.gz
gdb-3a63a5f515068e867f4fd3dfd0922c1602101dc2.tar.bz2
Test for nonexistance of files before trying to mv them.
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index ede4b3f..b2e2357 100755
--- a/configure
+++ b/configure
@@ -506,7 +506,9 @@ for subdir in . ${subdirs} ; do
# Make the links.
configlinks="${links}"
- mv -f config.status config.back
+ if [ -r config.status ] ; then
+ mv -f config.status config.back
+ fi
while [ -n "${files}" ] ; do
# set file to car of files, files to cdr of files
set ${files}; file=$1; shift; files=$*
@@ -724,7 +726,9 @@ ${progname}" ${arguments} "
# ${using}" > ${subdir}/config.new
fi
chmod a+x ${subdir}/config.new
- mv -f config.back config.status
+ if [ -r config.back ] ; then
+ mv -f config.back config.status
+ fi
${moveifchange} config.new config.back
;;