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 ]; then
12 cran2deb cran_pkgs $* >all_pkgs
15 for pkg in $(cat all_pkgs | egrep -v '(\.\.|/)')
17 if [ -e warn/$pkg ]; then
18 echo "skipping $pkg [warned] ..."
19 elif [ -e fail/$pkg ]; then
20 echo "skipping $pkg [fails] ..."
22 echo -n .. package $pkg
23 if cran2deb build $pkg >fail/$pkg 2>&1; then
24 grep '^[WE]:' fail/$pkg >warn/$pkg
25 # if (~ `{stat -c '%s' warn/$pkg} 0) {
28 if grep -q '^E:' warn/$pkg; then