# HG changeset patch # User Christophe Lincoln # Date 1306632890 -7200 # Node ID edcda368442ce17e2c2a29ba2c44facceeffc3e0 # Parent 4f97a0834221b018e7ece4d36ec8f1c05ee19f95 cooker.cgi: let use a custom header.html if exist and have an empty div for a logo diff -r 4f97a0834221 -r edcda368442c README --- a/README Sun May 29 03:15:40 2011 +0200 +++ b/README Sun May 29 03:34:50 2011 +0200 @@ -29,7 +29,8 @@ Cook does not: * Depend on Hg but can use it to manage a wok - * Do complex work like compiling the whole system from source + * Do complex work like compiling the whole system from source in + one command, but can rebuild the full system step by step. * Check build deps for you, use: BUILD_DEPENDS If all deps are also build deps do: BUILD_DEPENDS="$DEPENDS" * The work of a Build Bot, unix philosophy: one tool for one task @@ -86,6 +87,11 @@ * installed* : Lists used to compare installed packages before and after a package is cooked so we can remove them +The Cooker we interface can by highly customized through the CSS style and via +an optionnal header.html file that must be in the same directory than the CGI +script, like for style.css and a custom favicon. Yoou can find a header.html +example in the data/ directory or in /usr/share/cook if cookutils are installed. + Toolchain -------------------------------------------------------------------------------- diff -r 4f97a0834221 -r edcda368442c data/header.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/header.html Sun May 29 03:34:50 2011 +0200 @@ -0,0 +1,17 @@ + + + + SliTaz Cooker + + + + + + + + + +
diff -r 4f97a0834221 -r edcda368442c web/cooker.cgi --- a/web/cooker.cgi Sun May 29 03:15:40 2011 +0200 +++ b/web/cooker.cgi Sun May 29 03:34:50 2011 +0200 @@ -68,8 +68,11 @@ done } -# xHTML header -cat << EOT +# xHTML header. Pages can be customized with a separated html.header file. +if [ -f "header.html" ]; then + cat header.html +else + cat << EOT @@ -81,12 +84,14 @@
EOT +fi # # Load requested page