cookutils annotate web/cooker.cgi @ rev 758

cooker.cgi: add poke button
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 27 22:51:29 2015 +0200 (2015-09-27)
parents 5ebf7a7f1bf4
children 1778d08e5b0d
rev   line source
pankso@5 1 #!/bin/sh
pankso@5 2 #
pankso@5 3 # SliTaz Cooker CGI/web interface.
pankso@5 4 #
pankso@5 5
pankso@5 6 [ -f "/etc/slitaz/cook.conf" ] && . /etc/slitaz/cook.conf
pankso@5 7 [ -f "cook.conf" ] && . ./cook.conf
pankso@5 8
pankso@5 9 # The same wok as cook.
pankso@5 10 wok="$WOK"
pankso@5 11
pankso@5 12 # Cooker DB files.
pankso@5 13 activity="$CACHE/activity"
pankso@5 14 commits="$CACHE/commits"
pankso@5 15 cooklist="$CACHE/cooklist"
pankso@5 16 cookorder="$CACHE/cookorder"
pankso@14 17 command="$CACHE/command"
pankso@5 18 blocked="$CACHE/blocked"
pankso@5 19 broken="$CACHE/broken"
pankso@22 20 cooknotes="$CACHE/cooknotes"
pascal@753 21 cooktime="$CACHE/cooktime"
pankso@164 22 wokrev="$CACHE/wokrev"
pankso@5 23
paul@256 24 # We're not logged and want time zone to display correct server date.
pankso@249 25 export TZ=$(cat /etc/TZ)
pankso@249 26
al@728 27 if [ "${QUERY_STRING%%=*}" == 'download' ]; then
pascal@721 28 file=$(busybox httpd -d "$PKGS/${QUERY_STRING#*=}")
pascal@354 29 cat <<EOT
pascal@354 30 Content-Type: application/octet-stream
pascal@721 31 Content-Length: $(stat -c %s "$file")
pascal@721 32 Content-Disposition: attachment; filename="$(basename "$file")"
pascal@354 33
pascal@354 34 EOT
pascal@721 35 cat "$file"
pascal@354 36 exit
pascal@354 37 fi
pascal@354 38
al@695 39 echo -n "Content-Type: "
al@728 40 if [ "$QUERY_STRING" == 'rss' ]; then
al@728 41 echo 'application/rss+xml'
al@695 42 else
al@728 43 echo 'text/html; charset=utf-8'
al@695 44 fi
al@728 45 echo ''
pankso@5 46
pankso@310 47 # RSS feed generator
al@728 48 if [ "$QUERY_STRING" == 'rss' ]; then
al@695 49 pubdate=$(date -R)
al@728 50 cat <<EOT
pankso@310 51 <?xml version="1.0" encoding="utf-8" ?>
al@695 52 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
pankso@310 53 <channel>
pankso@310 54 <title>SliTaz Cooker</title>
pankso@310 55 <description>The SliTaz packages cooker feed</description>
pankso@310 56 <link>$COOKER_URL</link>
pascal@618 57 <lastBuildDate>$pubdate</lastBuildDate>
pascal@618 58 <pubDate>$pubdate</pubDate>
al@695 59 <atom:link href="http://cook.slitaz.org/cooker.cgi?rss" rel="self" type="application/rss+xml" />
pankso@310 60 EOT
al@728 61 for rss in $(ls -lt $FEEDS/*.xml | head -n 12); do
al@695 62 cat $rss | sed 's|<guid|& isPermaLink="false"|g;s|</pubDate| GMT&|g'
pankso@310 63 done
al@728 64 cat <<EOT
pankso@310 65 </channel>
pankso@310 66 </rss>
pankso@310 67 EOT
pankso@310 68 exit 0
pankso@310 69 fi
pankso@310 70
al@728 71
pascal@354 72 #
pascal@354 73 # Functions
pascal@354 74 #
pascal@354 75
al@728 76
pankso@5 77 # Put some colors in log and DB files.
al@728 78
pankso@5 79 syntax_highlighter() {
pankso@17 80 case $1 in
pankso@17 81 log)
pascal@601 82 sed -e 's/&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g' \
pascal@601 83 -e 's#OK$#<span class="span-ok">OK</span>#g' \
pascal@535 84 -e 's#Done$#<span class="span-ok">Done</span>#g' \
pankso@17 85 -e 's#yes$#<span class="span-ok">yes</span>#g' \
pankso@17 86 -e 's#no$#<span class="span-no">no</span>#g' \
pankso@129 87 -e 's#error$#<span class="span-red">error</span>#g' \
pankso@129 88 -e 's#ERROR:#<span class="span-red">ERROR:</span>#g' \
pankso@129 89 -e 's#WARNING:#<span class="span-red">WARNING:</span>#g' \
pankso@65 90 -e s"#^Executing:\([^']*\).#<span class='sh-val'>\0</span>#"g \
pankso@17 91 -e s"#^====\([^']*\).#<span class='span-line'>\0</span>#"g \
pankso@29 92 -e s"#^[a-zA-Z0-9]\([^']*\) :: #<span class='span-sky'>\0</span>#"g \
pascal@507 93 -e s"#ftp://[^ '\"]*#<a href='\0'>\0</a>#"g \
pascal@507 94 -e s"#http://[^ '\"]*#<a href='\0'>\0</a>#"g ;;
al@728 95
pankso@17 96 receipt)
pascal@603 97 sed -e s'|&|\&amp;|g' -e 's|<|\&lt;|g' -e 's|>|\&gt;|'g \
pankso@258 98 -e s"#^\#\([^']*\)#<span class='sh-comment'>\0</span>#"g \
pankso@17 99 -e s"#\"\([^']*\)\"#<span class='sh-val'>\0</span>#"g ;;
al@728 100
pankso@129 101 diff)
pankso@129 102 sed -e 's|&|\&amp;|g' -e 's|<|\&lt;|g' -e 's|>|\&gt;|g' \
pankso@129 103 -e s"#^-\([^']*\).#<span class='span-red'>\0</span>#"g \
pankso@129 104 -e s"#^+\([^']*\).#<span class='span-ok'>\0</span>#"g \
pankso@129 105 -e s"#@@\([^']*\)@@#<span class='span-sky'>@@\1@@</span>#"g ;;
al@728 106
pankso@129 107 activity)
pankso@129 108 sed s"#^\([^']* : \)#<span class='log-date'>\0</span>#"g ;;
pankso@17 109 esac
pankso@5 110 }
pankso@5 111
al@728 112
pankso@5 113 # Latest build pkgs.
al@728 114
pankso@5 115 list_packages() {
pankso@5 116 cd $PKGS
pankso@5 117 ls -1t *.tazpkg | head -20 | \
al@728 118 while read file; do
pankso@5 119 echo -n $(stat -c '%y' $PKGS/$file | cut -d . -f 1 | sed s/:[0-9]*$//)
pankso@5 120 echo " : $file"
pankso@5 121 done
pankso@5 122 }
pankso@5 123
al@728 124
pascal@605 125 # Optional full list button
al@728 126
pascal@605 127 more_button() {
pascal@607 128 [ $(wc -l < ${3:-$CACHE/$1}) -gt ${4:-12} ] &&
pascal@605 129 echo "<a class=\"button\" href=\"cooker.cgi?file=$1\">$2</a>"
pascal@605 130 }
pascal@605 131
al@728 132
pascal@751 133 # Show the running command and its progression
pascal@751 134
pascal@751 135 running_command()
pascal@751 136 {
pascal@751 137 local state="Not running"
pascal@751 138 if [ -s "$command" ]; then
pascal@751 139 state="$(cat $command)"
pascal@751 140 if grep -q "^$state" $cooktime ; then
pascal@751 141 set -- $(cat $cooktime)
pascal@751 142 state="$state $((($(date +%s)-$3)*100/$2))%"
pascal@751 143 fi
pascal@751 144 fi
pascal@751 145 echo $state
pascal@751 146 }
pascal@751 147
pascal@751 148
pankso@253 149 # xHTML header. Pages can be customized with a separated html.header file.
al@728 150
pankso@253 151 if [ -f "header.html" ]; then
pankso@253 152 cat header.html
pankso@253 153 else
al@728 154 cat <<EOT
pankso@5 155 <!DOCTYPE html>
al@728 156 <html lang="en">
pankso@5 157 <head>
al@728 158 <meta charset="utf-8"/>
pankso@5 159 <title>SliTaz Cooker</title>
al@728 160 <link rel="shortcut icon" href="favicon.ico"/>
al@728 161 <link rel="stylesheet" type="text/css" href="style.css"/>
pankso@5 162 </head>
pankso@5 163 <body>
pankso@5 164
pankso@5 165 <div id="header">
pankso@253 166 <div id="logo"></div>
pankso@5 167 <h1><a href="cooker.cgi">SliTaz Cooker</a></h1>
pankso@5 168 </div>
pankso@5 169
pankso@5 170 <!-- Content -->
pankso@5 171 <div id="content">
pankso@5 172 EOT
pankso@253 173 fi
pankso@5 174
al@728 175
pankso@5 176 #
pankso@5 177 # Load requested page
pankso@5 178 #
pankso@5 179
pankso@5 180 case "${QUERY_STRING}" in
pascal@758 181 poke)
pascal@758 182 touch $CACHE/cooker-request ;;
pankso@16 183 pkg=*)
pankso@16 184 pkg=${QUERY_STRING#pkg=}
pankso@16 185 log=$LOGS/$pkg.log
pankso@16 186 echo "<h2>Package: $pkg</h2>"
pankso@16 187
pankso@18 188 # Package info.
pankso@18 189 echo '<div id="info">'
pankso@16 190 if [ -f "$wok/$pkg/receipt" ]; then
pankso@16 191 echo "<a href='cooker.cgi?receipt=$pkg'>receipt</a>"
pascal@275 192 unset WEB_SITE
pascal@275 193 . $wok/$pkg/receipt
al@728 194
pascal@301 195 [ -n "$WEB_SITE" ] && # busybox wget -s $WEB_SITE &&
pascal@275 196 echo "<a href='$WEB_SITE'>home</a>"
al@728 197
pascal@354 198 if [ -f "$wok/$pkg/taz/$PACKAGE-$VERSION/receipt" ]; then
pascal@355 199 echo "<a href='cooker.cgi?files=$pkg'>files</a>"
pascal@354 200 unset EXTRAVERSION
pascal@354 201 . $wok/$pkg/taz/$PACKAGE-$VERSION/receipt
pascal@490 202 if [ -f $wok/$pkg/taz/$PACKAGE-$VERSION/description.txt ]; then
slaxemulator@491 203 echo "<a href='cooker.cgi?description=$pkg'>description</a>"
pascal@490 204 fi
pascal@354 205 if [ -f $PKGS/$PACKAGE-$VERSION$EXTRAVERSION.tazpkg ]; then
pascal@354 206 echo "<a href='cooker.cgi?download=$PACKAGE-$VERSION$EXTRAVERSION.tazpkg'>download</a>"
pascal@354 207 fi
pascal@439 208 if [ -f $PKGS/$PACKAGE-$VERSION$EXTRAVERSION-$ARCH.tazpkg ]; then
pascal@439 209 echo "<a href='cooker.cgi?download=$PACKAGE-$VERSION$EXTRAVERSION-$ARCH.tazpkg'>download</a>"
pascal@439 210 fi
pascal@694 211 echo "<a href='ftp://${HTTP_HOST%:*}/$pkg/'>browse</a>"
pascal@354 212 fi
pankso@16 213 else
pascal@703 214 if [ $(ls $wok/*$pkg*/receipt 2> /dev/null | wc -l) -eq 0 ]; then
pascal@703 215 echo "No package named: $pkg"
pascal@703 216 else
pascal@703 217 ls $wok/$pkg/receipt >/dev/null 2>&1 || pkg="*$pkg*"
pascal@703 218 echo '<table style="width:100%">'
pascal@703 219 for i in $(cd $wok ; ls $pkg/receipt); do
pascal@703 220 pkg=$(dirname $i)
pascal@703 221 unset SHORT_DESC CATEGORY
pascal@703 222 . $wok/$pkg/receipt
pascal@703 223 cat <<EOT
pascal@703 224 <tr>
pascal@703 225 <td><a href="cooker.cgi?pkg=$pkg">$pkg</a></td>
pascal@703 226 <td>$SHORT_DESC</td>
pascal@703 227 <td>$CATEGORY</td>
pascal@703 228 </tr>
pascal@704 229 EOT
pascal@703 230 done
pascal@703 231 echo '</table>'
pascal@703 232 unset pkg
pascal@703 233 fi
pankso@16 234 fi
pankso@18 235 echo '</div>'
pankso@16 236
paul@62 237 # Check for a log file and display summary if it exists.
pankso@16 238 if [ -f "$log" ]; then
pankso@87 239 if grep -q "cook:$pkg$" $command; then
pankso@88 240 echo "<pre>The Cooker is currently building: $pkg</pre>"
pankso@87 241 fi
pankso@149 242 if fgrep -q "Summary for:" $LOGS/$pkg.log; then
al@728 243 echo '<h3>Cook summary</h3>'
pankso@87 244 echo '<pre>'
pankso@640 245 grep -A 12 "^Summary for:" $LOGS/$pkg.log | sed /^$/d | \
pankso@87 246 syntax_highlighter log
pankso@87 247 echo '</pre>'
pankso@14 248 fi
pankso@149 249 if fgrep -q "Debug information" $LOGS/$pkg.log; then
al@728 250 echo '<h3>Cook failed</h3>'
pankso@17 251 echo '<pre>'
pankso@149 252 grep -A 8 "^Debug information" $LOGS/$pkg.log | sed /^$/d | \
pankso@17 253 syntax_highlighter log
pankso@17 254 echo '</pre>'
pankso@16 255 fi
al@728 256 echo '<h3>Cook log</h3>'
pankso@16 257 echo '<pre>'
pascal@601 258 cat $log | syntax_highlighter log
pankso@16 259 echo '</pre>'
pankso@5 260 else
pascal@703 261 [ "$pkg" ] && echo "<pre>No log: $pkg</pre>"
pankso@16 262 fi ;;
al@728 263
pankso@65 264 file=*)
al@728 265 # Don't allow all files on the system for security reasons.
pankso@65 266 file=${QUERY_STRING#file=}
pankso@65 267 case "$file" in
pankso@90 268 activity|cooknotes|cooklist)
pankso@91 269 [ "$file" == "cooklist" ] && \
pankso@93 270 nb="- Packages: $(cat $cooklist | wc -l)"
pankso@91 271 echo "<h2>DB: $file $nb</h2>"
pankso@18 272 echo '<pre>'
pankso@129 273 tac $CACHE/$file | syntax_highlighter activity
pankso@65 274 echo '</pre>' ;;
al@728 275
pankso@66 276 broken)
pankso@66 277 nb=$(cat $broken | wc -l)
pankso@93 278 echo "<h2>DB: broken - Packages: $nb</h2>"
pankso@66 279 echo '<pre>'
pankso@129 280 cat $CACHE/$file | sort | \
pankso@66 281 sed s"#^[^']*#<a href='cooker.cgi?pkg=\0'>\0</a>#"g
pankso@66 282 echo '</pre>' ;;
al@728 283
pankso@129 284 *.diff)
pankso@129 285 diff=$CACHE/$file
pankso@129 286 echo "<h2>Diff for: ${file%.diff}</h2>"
pankso@129 287 [ "$file" == "installed.diff" ] && echo \
pankso@129 288 "<p>This is the latest diff between installed packages \
pankso@130 289 and installed build dependencies to cook.</p>"
pankso@129 290 echo '<pre>'
pankso@129 291 cat $diff | syntax_highlighter diff
pankso@129 292 echo '</pre>' ;;
al@728 293
pankso@65 294 *.log)
pankso@71 295 log=$LOGS/$file
pankso@71 296 name=$(basename $log)
pankso@65 297 echo "<h2>Log for: ${name%.log}</h2>"
pankso@71 298 if [ -f "$log" ]; then
pankso@71 299 if fgrep -q "Summary" $log; then
pankso@65 300 echo '<pre>'
pankso@73 301 grep -A 20 "^Summary" $log | sed /^$/d | \
pankso@65 302 syntax_highlighter log
pankso@65 303 echo '</pre>'
pankso@65 304 fi
pankso@65 305 echo '<pre>'
pankso@71 306 cat $log | syntax_highlighter log
pankso@65 307 echo '</pre>'
pankso@65 308 else
pankso@71 309 echo "<pre>No log file: $log</pre>"
pankso@65 310 fi ;;
pankso@65 311 esac ;;
al@728 312
pascal@509 313 stuff=*)
pascal@509 314 file=${QUERY_STRING#stuff=}
pascal@509 315 echo "<h2>$file</h2>"
pascal@509 316 echo '<pre>'
pascal@601 317 cat $wok/$file | sed 's/&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'
pascal@509 318 echo '</pre>' ;;
al@728 319
pankso@16 320 receipt=*)
pankso@16 321 pkg=${QUERY_STRING#receipt=}
pankso@17 322 echo "<h2>Receipt for: $pkg</h2>"
pankso@16 323 if [ -f "$wok/$pkg/receipt" ]; then
pascal@509 324 ( cd $wok/$pkg ; find stuff -type f 2> /dev/null ) | \
pascal@509 325 while read file ; do
pascal@509 326 echo "<a href=\"?stuff=$pkg/$file\">$file</a>"
pascal@509 327 done
pankso@16 328 echo '<pre>'
pascal@601 329 cat $wok/$pkg/receipt | \
pascal@601 330 syntax_highlighter receipt
pankso@16 331 echo '</pre>'
pankso@16 332 else
pascal@301 333 echo "<pre>No receipt for: $pkg</pre>"
pascal@301 334 fi ;;
al@728 335
pascal@301 336 files=*)
pascal@301 337 pkg=${QUERY_STRING#files=}
pascal@301 338 dir=$(ls -d $WOK/$pkg/taz/$pkg-*)
pascal@301 339 if [ -d "$dir/fs" ]; then
pascal@703 340 echo "<h2>Installed files by: $pkg ($(du -hs $dir/fs | awk '{ print $1 }'))</h2>"
pascal@301 341 echo '<pre>'
pascal@720 342 find $dir/fs -not -type d -print0 | xargs -0 ls -ld | \
pascal@602 343 sed "s|\(.*\) /.*\(${dir#*wok}/fs\)\(.*\)|\1 <a href=\"?download=../wok\2\3\">\3</a>|;s|^\([^-].*\)\(<a.*\)\">\(.*\)</a>|\1\3|"
pascal@301 344 echo '</pre>'
pascal@301 345 else
pascal@301 346 echo "<pre>No files list for: $pkg</pre>"
pankso@5 347 fi ;;
al@728 348
pascal@490 349 description=*)
pascal@490 350 pkg=${QUERY_STRING#description=}
pascal@490 351 echo "<h2>Description of $pkg</h2>"
pascal@490 352 dir=$(ls -d $WOK/$pkg/taz/$pkg-*)
pascal@493 353 if [ -s "$dir/description.txt" ]; then
pascal@490 354 echo '<pre>'
pascal@601 355 cat $dir/description.txt | \
pascal@601 356 sed 's/&/\&amp;/g;s/</\&lt;/g;s/>/\&gt;/g'
pascal@490 357 echo '</pre>'
pascal@490 358 else
pascal@490 359 echo "<pre>No description for: $pkg</pre>"
pascal@490 360 fi ;;
al@728 361
pankso@5 362 *)
pankso@383 363 # We may have a toolchain.cgi script for cross cooker's
pankso@383 364 if [ -f "toolchain.cgi" ]; then
pankso@383 365 toolchain='toolchain.cgi'
pankso@383 366 else
pankso@383 367 toolchain='cooker.cgi?pkg=slitaz-toolchain'
pankso@383 368 fi
pankso@383 369 # Main page with summary. Count only package include in ARCH,
pankso@679 370 # use 'cooker arch-db' to manually create arch.$ARCH files.
pankso@679 371 inwok=$(ls $WOK/*/arch.$ARCH | wc -l)
pankso@75 372 cooked=$(ls $PKGS/*.tazpkg | wc -l)
pankso@106 373 unbuilt=$(($inwok - $cooked))
pankso@245 374 pct=0
pankso@245 375 [ $inwok -gt 0 ] && pct=$(( ($cooked * 100) / $inwok ))
al@728 376 cat <<EOT
pankso@5 377 <div style="float: right;">
pankso@5 378 <form method="get" action="$SCRIPT_NAME">
pankso@16 379 Package:
pankso@16 380 <input type="text" name="pkg" />
pankso@5 381 </form>
pankso@5 382 </div>
pankso@5 383
pankso@5 384 <h2>Summary</h2>
pankso@75 385
pankso@5 386 <pre>
pascal@751 387 Running command : $(running_command)
pascal@301 388 Wok revision : <a href="$WOK_URL">$(cat $wokrev)</a>
pankso@5 389 Commits to cook : $(cat $commits | wc -l)
pankso@65 390 Current cooklist : $(cat $cooklist | wc -l)
pankso@5 391 Broken packages : $(cat $broken | wc -l)
pankso@95 392 Blocked packages : $(cat $blocked | wc -l)
pankso@5 393 </pre>
pankso@5 394
pankso@383 395 <p class="info">
al@728 396 Packages: $inwok in the wok | $cooked cooked | $unbuilt unbuilt |
al@728 397 Server date: $(date -u '+%F %R %Z')
pankso@75 398 </p>
pankso@75 399 <div class="pctbar">
pankso@75 400 <div class="pct" style="width: ${pct}%;">${pct}%</div>
pankso@14 401 </div>
pankso@14 402
pankso@75 403 <p>
pankso@129 404 Latest:
pankso@129 405 <a href="cooker.cgi?file=cookorder.log">cookorder.log</a>
pankso@129 406 <a href="cooker.cgi?file=commits.log">commits.log</a>
al@742 407 <a href="cooker.cgi?file=pkgdb.log">pkgdb.log</a>
pankso@129 408 <a href="cooker.cgi?file=installed.diff">installed.diff</a>
pankso@188 409 - Architecture $ARCH:
pankso@383 410 <a href="$toolchain">toolchain</a>
pankso@75 411 </p>
pascal@758 412 EOT
pascal@758 413 [ -e $CACHE/cooker-request ] && cat <<EOT
pankso@75 414
pascal@758 415 <a class="button" href="cooker.cgi?poke">Poke cooker</a>
pascal@758 416 EOT
pascal@758 417 cat <<EOT
al@728 418
al@728 419 <h2 id="activity">Activity</h2>
pankso@5 420 <pre>
pankso@129 421 $(tac $CACHE/activity | head -n 12 | syntax_highlighter activity)
pankso@5 422 </pre>
pascal@605 423 $(more_button activity "More activity" $CACHE/activity 12)
pankso@5 424
al@728 425
al@728 426 <h2 id="cooknotes">Cooknotes</h2>
pankso@23 427 <pre>
pankso@129 428 $(tac $cooknotes | head -n 12 | syntax_highlighter activity)
pankso@23 429 </pre>
pascal@605 430 $(more_button cooknotes "More notes" $cooknotes 12)
pankso@23 431
al@728 432
al@728 433 <h2 id="commits">Commits</h2>
pankso@5 434 <pre>
pankso@5 435 $(cat $commits)
pankso@5 436 </pre>
pankso@5 437
al@728 438
al@728 439 <h2 id="cooklist">Cooklist</h2>
pankso@18 440 <pre>
pankso@90 441 $(cat $cooklist | head -n 20)
pankso@18 442 </pre>
pascal@605 443 $(more_button cooklist "Full cooklist" $cooklist 20)
pankso@18 444
al@728 445
al@728 446 <h2 id="broken">Broken</h2>
pankso@5 447 <pre>
pankso@66 448 $(cat $broken | head -n 20 | sed s"#^[^']*#<a href='cooker.cgi?pkg=\0'>\0</a>#"g)
pankso@5 449 </pre>
pascal@605 450 $(more_button broken "All broken packages" $broken 20)
pankso@5 451
al@728 452
al@728 453 <h2 id="blocked">Blocked</h2>
pankso@14 454 <pre>
pankso@23 455 $(cat $blocked | sed s"#^[^']*#<a href='cooker.cgi?pkg=\0'>\0</a>#"g)
pankso@14 456 </pre>
pankso@14 457
al@728 458
al@728 459 <h2 id="lastcook">Latest cook</h2>
pankso@5 460 <pre>
pankso@20 461 $(list_packages | sed s"#^\([^']*\).* : #<span class='log-date'>\0</span>#"g)
pankso@5 462 </pre>
pankso@5 463 EOT
pankso@5 464 ;;
pankso@5 465 esac
pankso@5 466
al@728 467
pankso@5 468 # Close xHTML page
al@728 469
al@728 470 cat <<EOT
pankso@5 471 </div>
pankso@5 472
pankso@5 473 <div id="footer">
pankso@116 474 <a href="http://www.slitaz.org/">SliTaz Website</a>
pankso@116 475 <a href="cooker.cgi">Cooker</a>
pankso@116 476 <a href="http://hg.slitaz.org/cookutils/raw-file/tip/doc/cookutils.en.html">
pankso@116 477 Documentation</a>
pankso@5 478 </div>
pankso@5 479
pankso@5 480 </body>
pankso@5 481 </html>
pankso@5 482 EOT
pankso@5 483
pankso@5 484 exit 0