]> git.donarmstrong.com Git - cran2deb.git/blobdiff - trunk/configure
small improvement to svn revision number generator
[cran2deb.git] / trunk / configure
index 81056f94a6b916bd048d2361ebfb38cc508a091b..6962c8c842b6eb5ee2593431a93a9e655af6c630 100755 (executable)
@@ -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 <<EOF > R/svnversion.R
 # Autogenerated by configure. Do not edit.