X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fdouble_build%2Fexec%2Fweb;fp=branch%2Fdouble_build%2Fexec%2Fweb;h=0000000000000000000000000000000000000000;hb=42bff07893104a11db95c8d65fe518a336463351;hp=10dbcb442e647f1ee1b1ee2f97c6c72f4fbf902a;hpb=f0817a2fbc3df0f5daad0a9e1a11d9f295218c0a;p=cran2deb.git diff --git a/branch/double_build/exec/web b/branch/double_build/exec/web deleted file mode 100755 index 10dbcb4..0000000 --- a/branch/double_build/exec/web +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env r -## DOC: cran2deb web -## DOC: generate cran2deb status web pages -## DOC: - -suppressPackageStartupMessages(library(cran2deb)) -library(hwriter) - -banned_builds_path='/var/www/banned_packages.html' -todays_builds_path='/var/www/todays_packages.html' -latest_builds_path='/var/www/latest_packages.html' -failed_builds_path='/var/www/failed_packages.html' - -links <- function(p) { - hwrite(c( - hwrite('Packages built today',link='/todays_packages.html') - ,hwrite('Successful packages',link='/latest_packages.html') - ,hwrite('Failed packages',link='/failed_packages.html') - ,hwrite('Banned packages',link='/banned_packages.html') - ),p,center=TRUE,border=0,style='padding: 6px 6px 6px 12px') -} - -page <- function(content,path,title) { - title <- paste('cran2deb:',title) - p <- openPage(path,title=title) - hwrite(title,p,heading=1) - hwrite('Install instructions',p,center=TRUE,link='/') - links(p) - hwrite(content,p,center=TRUE,border=1,table.style='border-collapse: collapse; padding: 0; margin: 0' - ,row.names=FALSE,row.bgcolor='#ffaaaa') - links(p) - closePage(p) -} - -page(db_blacklist_reasons(),banned_builds_path,'Banned packages') -page(db_todays_builds(),todays_builds_path,'Packages built today') -page(db_successful_builds(),latest_builds_path,'Latest successfully built packages') -page(db_failed_builds(),failed_builds_path,'Recent failed packages') -