#!/bin/sh TEXT='Copyright 2007 Matt Okeson-Harlow, http://technomage.net' if [ -f "${1}.orig" ];then echo "error, already an original file here, ${1}" exit else if [ -f $1 ];then cp $1 $1.orig chmod 600 $1.orig convert $1 \ -gravity south \ -stroke '#000C' \ -strokewidth 2 \ -annotate 0 "${TEXT}" \ -stroke none \ -fill white \ -annotate 0 "${TEXT}" \ $1 chmod 644 $1 fi fi