global("dinstall_archive", file.path(root,'var/archive'))
global("r_depend_fields", c('Depends','Imports')) # Suggests, Enhances
# git_revision {
- global("git_revision","bc0b57d181288d67ce7829455c9e11fcfc9faa1a")
+ global("git_revision","0a42c69323bbf485eb18fc4345253bee2efd7aff")
# git_revision }
global("changesfile", function(srcname,version='*') {
return(file.path(pbuilder_results
#!/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
#!/usr/bin/env r
+## DOC: cran2deb build [-D extra_dep1,extra_dep2,...] package1 package2 ...
+## DOC: builds a particular package.
+## DOC:
suppressMessages(library(cran2deb))
if (exists('argv')) { # check for littler
#!/usr/bin/env rc
+## DOC: cran2deb build_ctv
+## DOC: build all CRAN TaskViews. warning and error logs in ./ctv/
+## DOC:
for (ctv in `{cran2deb cran_pkgs query}) {
echo task view $ctv...
#!/usr/bin/rc
+## DOC: cran2deb build_some [taskview1 taskview2 ...]
+## DOC: build some packages, logging warnings into ./warn/$package
+## DOC: and failures into ./fail/$package. with no arguments a random
+## DOC: sample of packages is built. the file ./all_pkgs overrides this
+## DOC: behaviour and is expected to be a list of packages to build.
+## DOC:
mkdir -p warn fail
shift
#!/usr/bin/rc
+## DOC: cran2deb copy_find path
+## DOC: a tool for finding (heuristically) some copyright notices.
+## DOC:
kwords='copyright|warranty|redistribution|modification|patent|trademark|licen[cs]e|permission'
nl=`` () {printf '\n'}
ifs=$nl {
#!/usr/bin/env r
+## DOC: cran2deb cran_pkgs
+## DOC: print a list of 800 packages picked at random
+## DOC: cran2deb cran_pkgs query
+## DOC: print the names of all CRAN TaskViews
+## DOC: cran2deb cran_pkgs taskview1 taskview2 ...
+## DOC: print the names of all packages in a particular CRAN TaskView
+## DOC:
library(cran2deb)
if (length(argv) == 1) {
writeLines(sample(dimnames(available)[[1]],800))
- #writeLines(dimnames(available)[[1]])
} else {
argv = argv[2:length(argv)]
if (argv[1] == 'query') {
#!/usr/bin/env r
+## DOC: cran2deb depend
+## DOC: add dependency aliases, system requirements and forced dependencies
+## DOC:
suppressPackageStartupMessages(library(cran2deb))
suppressPackageStartupMessages(library(digest))
#!/usr/bin/rc
echo usage: cran2deb '<cmd> [args ...]'
echo where '<cmd>' is one of
-ls $1/exec
+grep '## [D]OC:' $1/exec/* | sed -e 's/.*[D]OC://'
echo
echo installation root is: $1
#!/usr/bin/env r
+## DOC: cran2deb license
+## DOC: add licenses and change acceptance/rejection of licenses
+## DOC:
suppressPackageStartupMessages(library(cran2deb))
suppressPackageStartupMessages(library(digest))
#!/usr/bin/rc
+## DOC: cran2deb update
+## DOC: update the cran2deb cache and database
+## DOC: cran2deb update full
+## DOC: force a full update of the cran2deb cache and database
+## DOC:
+
umask 022
root=$1
shift