diff --git a/Makefile b/Makefile index b116cf6..9d28031 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ HTML = index.html # Things to copy COPY += mdwntohtml template.xml -COPY += face.png geneweb.cgi gitweb.cgi +COPY += face.png geneweb.cgi chumby-photo.cgi COPY += format.css default.css print.css COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf diff --git a/chumby-photo.cgi b/chumby-photo.cgi new file mode 100755 index 0000000..8137e9a --- /dev/null +++ b/chumby-photo.cgi @@ -0,0 +1,8 @@ +#! /bin/sh + +cd /home/neale/lib/images/chumby + +echo Content-type: image/jpeg +echo +fn=$(ls *.jpg | shuf | head -n1) +cat $fn