]> git.donarmstrong.com Git - cran2deb.git/commitdiff
small improvement to svn revision number generator
authoredd <edd@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 21 Mar 2009 19:58:39 +0000 (19:58 +0000)
committeredd <edd@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 21 Mar 2009 19:58:39 +0000 (19:58 +0000)
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@206 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

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.