2 ## DOC: cran2deb build_some [taskview1 taskview2 ...]
3 ## DOC: build some packages, logging warnings into ./warn/$package
4 ## DOC: and failures into ./fail/$package. with no arguments a random
5 ## DOC: sample of packages is built. the file ./all_pkgs overrides this
6 ## DOC: behaviour and is expected to be a list of packages to build.
11 if ([ ! -e all_pkgs ]) {
12 cran2deb cran_pkgs $* >all_pkgs
15 for (pkg in `{cat all_pkgs}) {
16 if (~ $pkg *..* */*) {
17 echo bad name $pkg >>fail/ERROR
18 } else if ([ -e warn/$pkg ]) {
20 } else if ([ -e fail/$pkg ]) {
21 echo skipping failed $pkg...
23 echo -n .. package $pkg
25 cran2deb build $pkg >fail/$pkg >[2=1] || fail=1
28 grep '^[WE]:' fail/$pkg >warn/$pkg
29 # if (~ `{stat -c '%s' warn/$pkg} 0) {