From 5d869cdc4be844bfa93d710f8469835ebe8b1c30 Mon Sep 17 00:00:00 2001 From: blundellc Date: Sat, 13 Sep 2008 13:26:26 +0000 Subject: [PATCH] config: move ROOT/etc to /etc/cran2deb installing a new cran2deb no longer will clobber the previous config. git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@123 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- pkg/trunk/R/zzz.R | 6 +++--- pkg/trunk/exec/update | 6 +++--- pkg/trunk/inst/doc/README | 4 +++- pkg/trunk/inst/etc/dput.cf.in | 2 +- pkg/trunk/inst/etc/pbuilderrc.in | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/pkg/trunk/R/zzz.R b/pkg/trunk/R/zzz.R index 7d3584b..1f4c729 100644 --- a/pkg/trunk/R/zzz.R +++ b/pkg/trunk/R/zzz.R @@ -4,9 +4,9 @@ global("root", system.file(package='cran2deb')) global("cache_root", '/var/cache/cran2deb') global("pbuilder_results", '/var/cache/cran2deb/results') - global("pbuilder_config", file.path(root,'etc/pbuilderrc')) - global("dput_config", file.path(root,'etc/dput.cf')) - global("dinstall_config", file.path(root,'etc/mini-dinstall.conf')) + global("pbuilder_config", '/etc/cran2deb/pbuilderrc')) + global("dput_config", '/etc/cran2deb/dput.cf')) + global("dinstall_config", '/etc/cran2deb/mini-dinstall.conf')) global("dinstall_archive", file.path(root,'var/archive')) global("r_depend_fields", c('Depends','Imports')) # Suggests, Enhances # git_revision { diff --git a/pkg/trunk/exec/update b/pkg/trunk/exec/update index a2cdf01..3183356 100755 --- a/pkg/trunk/exec/update +++ b/pkg/trunk/exec/update @@ -8,7 +8,7 @@ umask 022 root=$1 shift -for (x in `{find $root/etc -type f -name '*.in'}) { +for (x in `{find /etc/cran2deb -type f -name '*.in'}) { y=`{echo $x | sed -e 's,.in$,,'} sed -e 's:@ROOT@:'^$root^':g' <$x >$y } @@ -17,7 +17,7 @@ if ([ ! -e $root/var/archive ]) { # I symbolically link this into /var/www/ mkdir $root/var/archive || exit 1 } -mini-dinstall --batch -c $root/etc/mini-dinstall.conf || exit 1 +mini-dinstall --batch -c /etc/cran2deb/mini-dinstall.conf || exit 1 update_period=10800 if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) { delta=`{awk 'END{print '^$update_period^'+1}'