# HG changeset patch # User Aleksej Bobylev # Date 1467492301 -10800 # Node ID 166a91b87ac81e060fd40168a52a1954c377f438 # Parent b2bf21185d4d4269d0ac398ecdd1291c539f9779 cooker.cgi: show variables $src, $install, $fs, $stuff in the cook log; hide empty boxes on the main page. diff -r b2bf21185d4d -r 166a91b87ac8 web/cooker.cgi --- a/web/cooker.cgi Thu Jun 30 22:22:50 2016 +0300 +++ b/web/cooker.cgi Sat Jul 02 23:45:01 2016 +0300 @@ -115,7 +115,12 @@ -e s"#^====\([^']*\).#\0#"g \ -e s"#^[a-zA-Z0-9]\([^']*\) :: #\0#"g \ -e s"#ftp://[^ '\"]*#\0#"g \ - -e s"#http://[^ '\"]*#\0#"g ;; + -e s"#http://[^ '\"]*#\0#"g | \ + sed "s|$src|\${src}|g; + s|$install|\${install}|g; + s|$fs|\${fs}|g; + s|$stuff|\${stuff}|g" + ;; receipt) sed -e s'|&|\&|g' -e 's|<|\<|g' -e 's|>|\>|'g \ @@ -209,6 +214,13 @@ log=$LOGS/$pkg.log echo "

Package: $pkg

" + # Define cook variables for syntax highlighter + . "$WOK/$pkg/receipt" + src="$WOK/$pkg/source/$PACKAGE-$VERSION" + install="$WOK/$pkg/install" + fs="$WOK/$pkg/taz/$PACKAGE-$VERSION/fs" + stuff="$WOK/$pkg/stuff" + # Package info. echo '
' if [ -f "$wok/$pkg/receipt" ]; then @@ -441,51 +453,56 @@ EOT [ -e $CACHE/cooker-request ] && [ $CACHE/activity -nt $CACHE/cooker-request ] && cat <Poke cooker EOT + cat <Activity
 $(tac $CACHE/activity | head -n 12 | syntax_highlighter activity)
 
$(more_button activity "More activity" $CACHE/activity 12) +EOT - + [ -s $cooknotes ] && cat <Cooknotes
 $(tac $cooknotes | head -n 12 | syntax_highlighter activity)
 
$(more_button cooknotes "More notes" $cooknotes 12) +EOT - + [ -s $commits ] && cat <Commits
 $(cat $commits)
 
+EOT - + [ -s $cooklist ] && cat <Cooklist
 $(cat $cooklist | head -n 20)
 
$(more_button cooklist "Full cooklist" $cooklist 20) +EOT - + [ -s $broken ] && cat <Broken
 $(cat $broken | head -n 20 | sed s"#^[^']*#\0#"g)
 
$(more_button broken "All broken packages" $broken 20) +EOT - + [ -s $blocked ] && cat <Blocked
 $(cat $blocked | sed s"#^[^']*#\0#"g)
 
+EOT - + cat <Latest cook
 $(list_packages | sed s"#^\([^']*\).* : #\0#"g)
diff -r b2bf21185d4d -r 166a91b87ac8 web/style.css
--- a/web/style.css	Thu Jun 30 22:22:50 2016 +0300
+++ b/web/style.css	Sat Jul 02 23:45:01 2016 +0300
@@ -65,14 +65,15 @@
 	text-align: justify;
 }
 
-.span-ok    { color: green; }
+.span-ok    { color: #0a0; }
 .span-red   { color: red; }
 .span-sky   { color: blue; }
-.span-no    { color: orange; }
+.span-no    { color: #d90; }
 .span-line  { color: #888; }
 .log-date   { color: #666; font-size: 95%; }
-.sh-comment { color: #b20000; }
-.sh-val     { color: #f35a00; }
+.sh-comment { color: #a00; }
+.sh-val     { color: #e50; font-weight: bold; }
+.var        { color: #05a; }
 
 /* Buttons */