]> git.donarmstrong.com Git - cran2deb.git/blob - branch/double_build/configure
fa1a12aec7a961015396be81abcea4a1d99fc414
[cran2deb.git] / branch / double_build / 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