]> git.donarmstrong.com Git - cran2deb.git/blobdiff - branch/patch/exec/build_ctv
A first simple attempt at patching.
[cran2deb.git] / branch / patch / exec / build_ctv
diff --git a/branch/patch/exec/build_ctv b/branch/patch/exec/build_ctv
new file mode 100755 (executable)
index 0000000..1e39e04
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+## DOC: cran2deb build_ctv
+## DOC:     build all CRAN TaskViews. warning and error logs in ./ctv/
+## DOC:
+
+for ctv in $(cran2deb cran_pkgs query); do
+    echo task view $ctv...
+    if [ ! -e "ctv/$ctv" ]; then
+        cran2deb build_some "$ctv"
+        mkdir -p "ctv/$ctv"
+        mv warn fail "ctv/$ctv"
+    fi
+done
+