X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trunk%2Fexec%2Fcran2deb;h=5e5e2406d3e5cf68077652346543ed3fa72a8aaa;hb=refs%2Fheads%2Fmaster;hp=e47543dfc3922d527b287dd06513980c83ce2e94;hpb=9a585e579f3cb0fbf62870629e2e8530f47510ae;p=cran2deb.git diff --git a/trunk/exec/cran2deb b/trunk/exec/cran2deb index e47543d..5e5e240 100755 --- a/trunk/exec/cran2deb +++ b/trunk/exec/cran2deb @@ -3,6 +3,13 @@ umask 002 root=$(r -e 'suppressMessages(library(cran2deb));cat(system.file(package="cran2deb"),file=stdout())') cmd=$1 +if [ -e /etc/cran2deb/config ]; then + . /etc/cran2deb/config; +elif [ -r ~/.cran2deb_config ]; then + . ~/.cran2deb_config; +fi; + + if [ "x" = "x$cmd" ]; then cmd="help" fi @@ -14,10 +21,11 @@ fi shift -precmd="" -if [ "$(id -un)" != c2d ]; then - precmd="sudo -u c2d -E" -fi +# there's no reason not to run cran2deb as a local user +# precmd="" +# if [ "$(id -un)" != c2d ]; then +# precmd="sudo -u c2d -E" +# fi if [ "web" = "$cmd" ]; then # web uses getopt and would be irritated by the "$root" argument