Add chumby photo CGI

This commit is contained in:
Neale Pickett 2010-06-08 21:46:34 -05:00
parent 68c507a91b
commit c126ef9c48
2 changed files with 9 additions and 1 deletions

View File

@ -8,7 +8,7 @@ HTML = index.html
# Things to copy # Things to copy
COPY += mdwntohtml template.xml 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 += format.css default.css print.css
COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf

8
chumby-photo.cgi Executable file
View File

@ -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