]> git.donarmstrong.com Git - cran2deb.git/blobdiff - trunk/configure
Email sent to the authors of flowQ requesting
[cran2deb.git] / trunk / configure
index 81056f94a6b916bd048d2361ebfb38cc508a091b..fa1a12aec7a961015396be81abcea4a1d99fc414 100755 (executable)
@@ -3,12 +3,17 @@
 # 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.
 svnversion <- function() {
-  return($svnrev)
+  return("$svnrev")
 }
 EOF