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
14 for (pkg in `{cat all_pkgs}) {
15 if (~ $pkg *..* */*) {
16 echo bad name $pkg >>fail/ERROR
17 } else if ([ -e warn/$pkg ]) {
19 } else if ([ -e fail/$pkg ]) {
20 echo skipping failed $pkg...
22 echo -n .. package $pkg
24 cran2deb build $pkg >fail/$pkg >[2=1] || fail=1
27 grep '^[WE]:' fail/$pkg >warn/$pkg
28 # if (~ `{stat -c '%s' warn/$pkg} 0) {