]> git.donarmstrong.com Git - cran2deb.git/commitdiff
latest_log: small tool to show the latest log messages for a failed or successful...
authorblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:27:56 +0000 (13:27 +0000)
committerblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:27:56 +0000 (13:27 +0000)
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@134 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

pkg/trunk/exec/latest_log [new file with mode: 0644]

diff --git a/pkg/trunk/exec/latest_log b/pkg/trunk/exec/latest_log
new file mode 100644 (file)
index 0000000..055991a
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env r
+## DOC: cran2deb latest_log package1 package2 ...
+## DOC:     show the latest log output for <package>
+suppressMessages(library(cran2deb))
+
+if (exists('argv')) {
+    for (pkg in argv) {
+        cat(db_latest_build(pkg)$log)
+        cat('\n')
+    }
+}