From 72ddbe36fccba9bbb28d9dc7898bba449e8656af Mon Sep 17 00:00:00 2001 From: edd Date: Sat, 21 Mar 2009 19:58:39 +0000 Subject: [PATCH] small improvement to svn revision number generator git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@206 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- trunk/configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/configure b/trunk/configure index 81056f9..6962c8c 100755 --- a/trunk/configure +++ b/trunk/configure @@ -3,7 +3,12 @@ # We are tricking the builds process into executing this so that we can # extract an svn revision number from the source directory -svnrev=`svnversion | cut -f1 -d:` +# do nothing if we are not in a svn repository +if [ ! -d .svn ]; then + exit +fi + +svnrev=$(svnversion | cut -f1 -d:) cat < R/svnversion.R # Autogenerated by configure. Do not edit. -- 2.39.5