summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBuild/tools/svnchangelog3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/tools/svnchangelog b/Build/tools/svnchangelog
index 55bb08544a3..abcee86da9d 100755
--- a/Build/tools/svnchangelog
+++ b/Build/tools/svnchangelog
@@ -12,8 +12,9 @@ chicken=${OVERRIDE_CHICKEN-false}
# to get started, ran svn log and put the first thousand changes in log.
mydir=`dirname $0` # Build/tools
-outdir=`cd $mydir/../cdbuild/logs && pwd`
+outdir=`cd $mydir/../logs && pwd`
outfile=$outdir/svnlog
+test ! -f $outfile || exit 2 # error probably given by the cd
# get the revision number we last logged
line=`grep '^r[0-9]' $outfile | head -1 | sed 's/^r//'`