X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fmultisys%2Fexec%2Fautobuild;fp=branch%2Fmultisys%2Fexec%2Fautobuild;h=0b24cba32edaff51fbce22e25f9d965e189193ba;hb=413d9e15b7bd5f8f36685c2cccbb9bbed3a3a0b9;hp=0000000000000000000000000000000000000000;hpb=65fce8cd87d7d6f0209611ff7a264819e42a6c9e;p=cran2deb.git diff --git a/branch/multisys/exec/autobuild b/branch/multisys/exec/autobuild new file mode 100755 index 0000000..0b24cba --- /dev/null +++ b/branch/multisys/exec/autobuild @@ -0,0 +1,15 @@ +#!/usr/bin/env r +## DOC: cran2deb autobuild +## DOC: automatically builds all out of date packages. +## DOC: +suppressMessages(library(cran2deb)) + +if (exists('argv')) { # check for littler + db_update_package_versions() + outdated <- db_outdated_packages() + build_order <- r_dependency_closure(outdated) + notice('build order',paste(build_order,collapse=', ')) + for (pkg in build_order) { + build(pkg,c()) + } +}