Mercurial > hg > aboriginal
view www/screenshots/screenshots.sh @ 962:3d2261361009
Remove the --extract option from download.sh, since EXTRACT_ALL=1 does the same thing and everything _else_ is controlled by environment variables. At it to the config file and adjust existing users.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 01 Feb 2010 03:46:49 -0600 |
parents | 290e12307505 |
children | a835d605cb85 |
line wrap: on
line source
#!/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 ' ' i=$[$i+1] done echo sed -e 's/\(................................................................................\)/\1\n/g' \ -e 's@\&@\&@g' -e 's@<@\<@g' -e 's@>@\>@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