changeset 886:290e12307505

Update screenshot index, and check in script to generate each architecture's section.
author Rob Landley <rob@landley.net>
date Sat, 14 Nov 2009 16:19:25 -0600
parents 06f80138cb90
children 2499abcf2df1
files www/screenshots/index.html www/screenshots/screenshots.sh
diffstat 2 files changed, 132 insertions(+), 127 deletions(-) [+]
line wrap: on
line diff
--- a/www/screenshots/index.html	Thu Nov 12 15:39:00 2009 -0600
+++ b/www/screenshots/index.html	Sat Nov 14 16:19:25 2009 -0600
@@ -14,164 +14,114 @@
 <li><a href="#strace">Static Strace Binary</a></li>
 </ul>
 
+<p>The following $TARGET families are available:</p>
+
+<ul>
+<li><a href="#arm">ARM</a> (<a href="../architectures.html#arm">description</a>)
+</li>
+<li><strike><a href="#m68k">M68k</a> (<a href="../architectures.html#m68k">description</a>)</strike></li>
+<li><a href="#mips">Mips</a> (<a href="../architectures.html#mips">description</a>)</li>
+<li><a href="#ppc">PowerPC</a> (<a href="../architectures.html#ppc">description</a>)</li>
+<li><strike><a href="#sparc">Sparc</a> (<a href="../architectures.html#sparc">description</a>)</strike></li>
+<li><a href="#sh4">Super Hitachi</a> (<a href="../architectures.html#sh4">description</a>)</li>
+<li><a href="#x86">x86</a> (<a href="../architectures.html#x86">description</a>)</li>
+</ul>
+
+<hr /><h1><center><a name="arm" /><a href="../architectures.html#arm">ARM</a></center></h1><hr />
+
 <table>
 <tr>
-<td colspan=100%>
-<hr /><h1><center><a href="../architectures.html#arm">ARM</a></center></h1>
-<hr />
-</td>
-</tr>
 
-<tr>
-
-<td>
-<center>
+<td><table border=1><tr><td colspan=2 border=1><center>
 <h2>ARMv4l</h2>
 <p>ARMv4, little endian, soft float, OABI</p>
-<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>
 <!--#include file="screenshot-armv4l.html" -->
-</pre></font></td></tr></table>
-</center>
-</td>
 
-<td>
-<ul>
-<li><a href=screenshot-armv4l.txt>screenshot</a></li>
-<li><a href=cross-compiler-armv4l.tar.bz2>cross compiler</a></li>
-<li><a href=native-compiler-armv4l.tar.bz2>native compiler</a></li>
-<li><a href=root-filesystem-armv4l.tar.bz2>root filesystem</a></li>
-<li><a href=system-image-armv4l.tar.bz2>system image</a></li>
-<hr />
-<li><a href=busybox-armv4l>busybox binary</a></li>
-<li><a href=dropbearmulti-armv4l>dropbear binary</a></li>
-<li><a href=strace-armv4l>strace binary</a></li>
-</ul>
-</center>
-</td>
-</tr>
+</tr><tr>
 
-<tr>
-<td>
-<center>
+<td><table border=1><tr><td colspan=2 border=1><center>
 <h2>ARMv4tl</h2>
 <p>ARMv4t, little endian, soft float, EABI</p>
-<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>
 <!--#include file="screenshot-armv4tl.html" -->
-</pre></font></td></tr></table>
-</center>
-</td>
 
-<td>
-<ul>
-<li><a href=screenshot-armv4tl.txt>screenshot</a></li>
-<li><a href=cross-compiler-armv4tl.tar.bz2>cross compiler</a></li>
-<li><a href=native-compiler-armv4tl.tar.bz2>native compiler</a></li>
-<li><a href=root-filesystem-armv4tl.tar.bz2>root filesystem</a></li>
-<li><a href=system-image-armv4tl.tar.bz2>system image</a></li>
-<hr />
-<li><a href=busybox-armv4tl>busybox binary</a></li>
-<li><a href=dropbearmulti-armv4tl>dropbear binary</a></li>
-<li><a href=strace-armv4tl>strace binary</a></li>
-</ul>
-</center>
-</td>
-</tr>
+</tr><tr>
 
-<tr>
-<td>
-<center>
+<td><table border=1><tr><td colspan=2 border=1><center>
 <h2>ARMv5l</h2>
 <p>ARMv5, little endian, VFP, EABI</p>
-<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>
 <!--#include file="screenshot-armv5l.html" -->
-</pre></font></td></tr></table>
-</center>
-</td>
 
-<td>
-<ul>
-<li><a href=screenshot-armv5l.txt>screenshot</a></li>
-<li><a href=cross-compiler-armv5l.tar.bz2>cross compiler</a></li>
-<li><a href=native-compiler-armv5l.tar.bz2>native compiler</a></li>
-<li><a href=root-filesystem-armv5l.tar.bz2>root filesystem</a></li>
-<li><a href=system-image-armv5l.tar.bz2>system image</a></li>
-<hr />
-<li><a href=busybox-armv5l>busybox binary</a></li>
-<li><a href=dropbearmulti-armv5l>dropbear binary</a></li>
-<li><a href=strace-armv5l>strace binary</a></li>
-</ul>
-</center>
-</td>
-</tr>
+</tr><tr>
 
-<tr>
-<td>
-<center>
+<td><table border=1><tr><td colspan=2 border=1><center>
 <h2>ARMv6l</h2>
 <p>ARMv6, little endian, VFP, EABI</p>
-<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>
 <!--#include file="screenshot-armv6l.html" -->
-</pre></font></td></tr></table>
-</center>
-</td>
+
+</tr></table>
+
+<hr /><h1><center><a name="mips" /><a href="../architectures.html#mips">Mips</a></center></h1></hr />
+
+<table><tr>
+
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>Mips</h2>
+<p>MIPS r4k, big endian</p>
+<!--#include file="screenshot-mips.html" -->
+
+</tr><tr>
 
-<td>
-<ul>
-<li><a href=screenshot-armv6l.txt>screenshot</a></li>
-<li><a href=cross-compiler-armv6l.tar.bz2>cross compiler</a></li>
-<li><a href=native-compiler-armv6l.tar.bz2>native compiler</a></li>
-<li><a href=root-filesystem-armv6l.tar.bz2>root filesystem</a></li>
-<li><a href=system-image-armv6l.tar.bz2>system image</a></li>
-<hr />
-<li><a href=busybox-armv6l>busybox binary</a></li>
-<li><a href=dropbearmulti-armv6l>dropbear binary</a></li>
-<li><a href=strace-armv6l>strace binary</a></li>
-</ul>
-</center>
-</td>
-</tr>
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>Mipsel</h2>
+<p>MIPS r4k, little endian</p>
+<!--#include file="screenshot-mipsel.html" -->
+
+</tr></table>
+
+<hr /><h1><center><a name="mips" /><a href="../architectures.html#ppc">Power PC</a></center></h1></hr />
 
-<tr>
-<td colspan=100%>
-<hr /><h1><center>i686</center></h1><hr />
-</td>
-</tr>
+<table><tr>
 
-
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>PowerPC</h2>
+<p>PowerPC 405, 32-bit, big endian</p>
+<!--#include file="screenshot-powerpc.html" -->
 
-<tr>
+</tr><tr>
 
-<td>
-<center>
-<h2>i686</h2>
-<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>
-<!--#include file="screenshot-i686.html" -->
-</pre></font></td></tr></table>
-</center>
-</td>
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>PowerPC 440</h2>
+<p>PowerPC 440, 32-bit, big endian</p>
+<!--#include file="screenshot-powerpc-440fp.html" -->
+
+</tr></table>
+
+<hr /><h1><center><a name="sh4" /><a href="../architectures.html#sh4">Super Hitachi</a></center></h1><hr />
+
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>SH4</h2>
+<p>Super Hitachi 4, 32-bit</p>
+<!--#include file="screenshot-sh4.html" -->
+
+</tr></table>
 
-<td>
-<ul>
-<li><a href=screenshot-i686.txt>screenshot</a></li>
-<li><a href=cross-compiler-i686.tar.bz2>cross compiler</a></li>
-<li><a href=native-compiler-i686.tar.bz2>native compiler</a></li>
-<li><a href=root-filesystem-i686.tar.bz2>root filesystem</a></li>
-<li><a href=system-image-i686.tar.bz2>system image</a></li>
+<hr /><h1><center><a name="x86" /><a href="../architectures.html#x86">x86</a></center></h1><hr />
+
+<table><tr>
 
-<hr />
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>i586</h2>
+<p>Pentium</p>
+<!--#include file="screenshot-i586.html" -->
 
-<li><a href=i686-busybox>busybox binary</a></li>
-<li><a href=i686-dropbearmulti>dropbear binary</a></li>
-<li><a href=i686-strace>strace binary</a></li>
-</ul>
-</center>
-</td>
+</tr><tr>
 
-</tr>
-</table>
+<td><table border=1><tr><td colspan=2 border=1><center>
+<h2>i686</h2>
+<p>Pentium II</p>
+<!--#include file="screenshot-i686.html" -->
 
-
-
+</tr></table>
 
 <ul>
 <hr />
@@ -238,6 +188,10 @@
 tarball, this time packaged into a squashfs.  It also has Linux kernel
 configured for qemu, and shell scripts to launch qemu to run this kernel
 with this filesystem image.</p>
+
+<p>Basically you download this tarball, extract it, cd into the directory,
+and "./run-emulator.sh".  This gives you a shell prompt inside the emulator,
+ala the above screen shots.  Type "exit" when done.</p>
 </li>
 
 <hr />
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/www/screenshots/screenshots.sh	Sat Nov 14 16:19:25 2009 -0600
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+escape_screenshot()
+{
+  echo '</center></td></tr><tr>'
+
+  cat << EOF
+<td><ul>
+<li><a href=screenshot-$1.txt>screenshot</a></li>
+<li><a href=cross-compiler-$1.tar.bz2>cross compiler</a></li>
+<li><a href=native-compiler-$1.tar.bz2>native compiler</a></li>
+<li><a href=root-filesystem-$1.tar.bz2>root filesystem</a></li>
+<li><a href=system-image-$1.tar.bz2>system image</a></li>
+
+<hr />
+
+<li><a href=busybox-$1>busybox binary</a></li>
+<li><a href=dropbearmulti-$1>dropbear binary</a></li>
+<li><a href=strace-$1>strace binary</a></li>
+</ul></td>
+EOF
+
+
+  echo '<td>'
+  echo '<table bgcolor=#000000><tr><td><font color=#ffffff size=-2><pre>'
+
+  i=0
+  while [ $i -lt 80 ]
+  do
+    echo -n '&nbsp;'
+    i=$[$i+1]
+  done
+  echo
+  sed -e 's/\(................................................................................\)/\1\n/g' \
+      -e 's@\&@\&amp;@g' -e 's@<@\&lt;@g' -e 's@>@\&gt;@g' \
+      "screenshot-$1.txt" | tail -n 25
+
+  echo '</pre></font></td></tr></table></td>'
+  echo
+  echo '</tr></table></td>'
+}
+
+process_screenshot()
+{
+  escape_screenshot "$1" > "screenshot-$1.html"
+}
+
+for i in *.txt
+do
+  process_screenshot "$(echo "$i" | sed 's/screenshot-\(.*\)\.txt/\1/')"
+done