]> git.donarmstrong.com Git - cran2deb.git/blob - trunk/configure
the source only builds do not care about the R dependencies
[cran2deb.git] / trunk / configure
1 #!/bin/sh
2 #
3 # We are tricking the builds process into executing this so that we can
4 # extract an svn revision number from the source directory
5
6 # do nothing if we are not in a svn repository
7 if [ ! -d .svn ]; then
8     exit 
9 fi
10
11 svnrev=$(svnversion | cut -f1 -d:)
12
13 cat <<EOF > R/svnversion.R
14 # Autogenerated by configure. Do not edit.
15 svnversion <- function() {
16   return("$svnrev")
17 }
18 EOF
19