From c126ef9c48614cce54a745eadff8d98ca45efb55 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 8 Jun 2010 21:46:34 -0500 Subject: [PATCH] Add chumby photo CGI --- Makefile | 2 +- chumby-photo.cgi | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 chumby-photo.cgi 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