#!/bin/sh # # make_image_index: make a foo.html page with a bunch of inline # images on it. # # usage: make_image_index *sm.jpg > index.html # # Gerald Oskoboiny, 11 Jan 1999 # # source: http://impressive.net/people/gerald/1999/01/make_image_index # # $Id: make_image_index,v 1.3 2002/10/29 16:36:52 gerald Exp $ # echo $@ | fmt -1 | sed 's/.*/<a href="&"><img src="&" border="0" hspace="2" vspace="2" alt=""><\/a>/; s/tn/med/' > mii.$$ wwwis mii.$$ > mii.$$.wwwis cat <<EOHD <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>@@</title> <meta name="revision" content="\$Id\$"> <link rel=stylesheet type="text/css" href="/stylesheets/main.css"> </head> <body> <h1>@@</h1> <p> by <a href="../../../">Gerald Oskoboiny</a> </p> <hr> <p> @@ </p> <p> EOHD cat mii.$$ cat <<EOHD </p> <hr> <p> <a href="http://validator.w3.org/check/referer"><img src="http://validator.w3.org/images/vh40" height=31 width=88 align=right border=0 alt="Valid HTML 4.0!"></a> <em><small>Last modified: \$Date\$<br> <a href="../../../">Gerald Oskoboiny</a>, <<a href="mailto:gerald@impressive.net">gerald@impressive.net</a>></small></em> </p> </body> </html> EOHD cat mii.$$.wwwis >&2 rm mii.$$ mii.$$.old mii.$$.wwwis # # changelog: # # $Log: make_image_index,v $ # Revision 1.3 2002/10/29 16:36:52 gerald # s/tn/sm/ in usage blurb to be consistent with make_thumbnails # # Revision 1.2 2002/09/03 07:20:40 gerald # made it link to med.jpg's instead of large ones by default, # added changelog, link to source code # #