]> git.donarmstrong.com Git - cran2deb.git/blobdiff - tags/pre-dual/configure
reprepro version before the massacre
[cran2deb.git] / tags / pre-dual / configure
diff --git a/tags/pre-dual/configure b/tags/pre-dual/configure
new file mode 100755 (executable)
index 0000000..fa1a12a
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# We are tricking the builds process into executing this so that we can
+# extract an svn revision number from the source directory
+
+# 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")
+}
+EOF
+