]> git.donarmstrong.com Git - cran2deb.git/blob - pkg/trunk/exec/build_some
build_some: if there exists a previous list of packages in the current directory...
[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 {
12         echo .. package $pkg
13         fail=0
14         cran2deb build $pkg >fail/$pkg >[2=1] || fail=1
15         if (~ $fail 0) {
16             grep '^[WE]:' fail/$pkg >warn/$pkg
17             if (~ `{stat -c '%s' warn/$pkg} 0) {
18                 rm -f warn/$pkg
19             }
20             rm -f fail/$pkg
21         }
22     }
23 }