#! /bin/bash # # TODO: actually learn CSS2 instead of guessing and hacking found # stylesheets exec >index.html cat < ~sergent/photos EOF for year in $(ls -1dr [12]*) do echo "
" echo "
$year
" ls -1t "${year}" | while read album do albumpath="${year}/${album}" set -- "${albumpath}"/thumbnails/*.jpg thumb="$1" info="$(jpeginfo "$thumb")" set -- ${info#${thumb}} echo "" done echo "
" done cat < Generated on $(date +%Y-%m-%d) EOF