]> git.donarmstrong.com Git - cran2deb.git/blob - pkg/trunk/exec/build_some
bulk build modifications: regexp tweaks, license/sysreq override additions, drop...
[cran2deb.git] / pkg / trunk / exec / build_some
1 #!/usr/bin/rc
2
3 mkdir -p warn fail
4 shift
5 if ([ ! -e all_pkgs ]) {
6     cran2deb cran_pkgs $* >all_pkgs
7 }
8 for (pkg in `{cat all_pkgs}) {
9     if (~ $pkg *..* */*) {
10         echo bad name $pkg >>fail/ERROR
11     } else if ([ -e warn/$pkg ]) {
12         echo skipping $pkg...
13     } else if ([ -e fail/$pkg ]) {
14         echo skipping failed $pkg...
15     } else {
16         echo -n .. package $pkg
17         fail=0
18         cran2deb build $pkg >fail/$pkg >[2=1] || fail=1
19         if (~ $fail 0) {
20             echo success
21             grep '^[WE]:' fail/$pkg >warn/$pkg
22 #            if (~ `{stat -c '%s' warn/$pkg} 0) {
23 #                rm -f warn/$pkg
24 #            }
25             rm -f fail/$pkg
26         } else {
27             echo FAILED
28         }
29     }
30 }