From 5387b94a4ea3336baaae7f0b0f0798a0045e0440 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 27 Aug 2014 23:07:04 +0000 Subject: [PATCH] xmas install script --- install | 64 +++++++++++++++++++++++++++++++++ template.html.m4 => template.m4 | 0 xmas/2013/index.mdwn | 19 ++++++++++ xmas/install | 11 ++++++ 4 files changed, 94 insertions(+) create mode 100755 install rename template.html.m4 => template.m4 (100%) create mode 100644 xmas/2013/index.mdwn create mode 100755 xmas/install diff --git a/install b/install new file mode 100755 index 0000000..fe1a1fb --- /dev/null +++ b/install @@ -0,0 +1,64 @@ +#! /bin/sh + +DESTDIR=${1:-/srv/http/woozle.org} + +cd $(dirname $0) + +html () { + target=$DESTDIR/${1%mdwn}html + if older $target $1 template.m4; then + echo "HTML $1" + mkdir -p $(dirname $target) + ./mdwntohtml template.m4 < $1 > $target + fi +} + +copy () { + target=$DESTDIR/$1 + if older $target $1; then + echo "COPY $1" + mkdir -p $(dirname $target) + cp $1 $target + fi +} + +compile () { + target=$DESTDIR/${1%.c} + if older $target $1; then + echo "COMP $1" + gcc -o $target $1 + fi +} + +install () { + fd=$(dirname $fn) + echo "SUBINSTALL $fd" + (cd $fd && ./install $DESTDIR/$fd) +} + + +git ls-files | while read fn; do + case "$fn" in + .*|*/.*|*~|install) + ;; + */install) + install $fn + ;; + *.mdwn) + html $fn + ;; + *.cgi.c) + compile $fn + ;; + *) + copy $fn + ;; + esac +done + + +if older $DESTDIR/people.html people.sh template.m4 /etc/passwd; then + echo "PEOPLE" + sh people.sh | ./mdwntohtml template.m4 > $DESTDIR/people.html +fi + diff --git a/template.html.m4 b/template.m4 similarity index 100% rename from template.html.m4 rename to template.m4 diff --git a/xmas/2013/index.mdwn b/xmas/2013/index.mdwn new file mode 100644 index 0000000..c8ebb49 --- /dev/null +++ b/xmas/2013/index.mdwn @@ -0,0 +1,19 @@ +Title: 2013 Holiday Letter + +Happy Holidays! We hope you and your families had a good 2013 and are looking forward to an equally adequate 2014. Drop us a line sometime if you can! + +In 2013, we worked hard, but we got to play a lot too. We managed to visit Seattle for the first time since Ginnie was 2. Ginnie’s still talking about her Moose Tracks ice cream cone she got at the Seattle Center. We did the touristy stuff we never did when we lived there (including visiting the Space Needle, the EMP, the Pacific Science Center and wandering the Pike Place Market). We also took Ginnie to the UW and got to ride the long buses with the bouncy middle (weee!). Our conclusion as a family is that Seattle is a fun place to visit too! + +Amy’s sister Kristen brought her daughter, Daphne, to visit us in May. She’s super cute and a really good-natured baby. She just turned one year old this week! We’re really glad they were able to come and see us. + +This year Ginnie started taking guitar lessons with a different teacher than her dad. This arrangement seems to be working better! She also started hard shoe in Irish dance, which was pretty exciting for her. She enjoys taking care of the neighbor’s cat when they go on vacation, collecting rocks, and ridding the world of ice cream one bowl at a time. Writing and drawing her own comics is still one of her favorite past-times. + +This year Neale has been enjoying playing guitar with his kid and drinking a ton of coffee to help deal with Amy’s crazy schedule. He’s learned a lot about scheduling and getting kids to events on time. He’s been doing a good job taking his bike most places, although that’s cut back in December in order to work on knitting projects. It’s kind of been a slow year for Neale. + +Amy has one semester of nursing school left. She graduates in May, and over the summer she’s hoping to get scheduled to take the NCLEX (the national boards exam) and finally become an RN. She’s still skating derby and watching for the moment that Ginnie is taller than she is! + +Have a very happy holiday season! + +Love, + +Neale, Amy, & Ginnie diff --git a/xmas/install b/xmas/install new file mode 100755 index 0000000..923f71c --- /dev/null +++ b/xmas/install @@ -0,0 +1,11 @@ +#! /bin/sh + +DESTDIR=${1:-/srv/http/woozle.org/xmas} + +for img in */*.jpg; do + target=$DESTDIR/${img%.jpg}-sm.jpg + if older $target $img; then + echo "SCALE $img" + jpegtopnm $img | pnmscale -xysize 400 400 | pnmtojpeg > $target + fi +done