X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fmultisys%2FR%2Fzzz.R;fp=branch%2Fmultisys%2FR%2Fzzz.R;h=0000000000000000000000000000000000000000;hb=f0787374aaeaade22d5f67f4ce317b64d670d829;hp=d184393137d5a734ce977fc5041780d6afd34479;hpb=cba40064eef115e4aec5b1d089963d402a6b0965;p=cran2deb.git diff --git a/branch/multisys/R/zzz.R b/branch/multisys/R/zzz.R deleted file mode 100644 index d184393..0000000 --- a/branch/multisys/R/zzz.R +++ /dev/null @@ -1,30 +0,0 @@ -.First.lib <- function(libname, pkgname) { - global <- function(name,value) assign(name,value,envir=.GlobalEnv) - global("which_system", Sys.getenv('CRAN2DEB_SYS','debian-amd64')) - if (!length(grep('^[a-z]+-[a-z0-9]+$',which_system))) { - stop('Invalid system specification: must be of the form name-arch') - } - global("host_arch", gsub('^[a-z]+-','',which_system)) - global("maintainer", 'cran2deb autobuild ') - global("root", system.file(package='cran2deb')) - global("cache_root", '/var/cache/cran2deb') - global("pbuilder_results", file.path('/var/cache/cran2deb/results',which_system)) - global("pbuilder_config", file.path('/etc/cran2deb/sys',which_system,'pbuilderrc')) - global("dput_config", file.path('/etc/cran2deb/sys',which_system,'dput.cf')) - global("dinstall_config", file.path('/etc/cran2deb/sys',which_system,'mini-dinstall.conf')) - global("dinstall_archive", file.path('/etc/cran2deb/archive',which_system)) - global("r_depend_fields", c('Depends','Imports')) # Suggests, Enhances - global("scm_revision", 'svn:$Id$') - global("patch_dir", '/etc/cran2deb/patches') - global("changesfile", function(srcname,version='*') { - return(file.path(pbuilder_results - ,paste(srcname,'_',version,'_' - ,host_arch,'.changes',sep=''))) - }) - - cache <- file.path(cache_root,'cache.rda') - if (file.exists(cache)) { - load(cache,envir=.GlobalEnv) - } - message(paste('I: cran2deb',scm_revision,'building for',which_system)) -}