From: edd Date: Sat, 21 Mar 2009 19:58:39 +0000 (+0000) Subject: small improvement to svn revision number generator X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=72ddbe36fccba9bbb28d9dc7898bba449e8656af;p=cran2deb.git 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 --- 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.