xmas install script

This commit is contained in:
Neale Pickett 2014-08-27 23:07:04 +00:00
parent f9c4bbac91
commit 5387b94a4e
4 changed files with 94 additions and 0 deletions

64
install Executable file
View File

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

19
xmas/2013/index.mdwn Normal file
View File

@ -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. Ginnies 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!
Amys sister Kristen brought her daughter, Daphne, to visit us in May. Shes super cute and a really good-natured baby. She just turned one year old this week! Were 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 neighbors 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 Amys crazy schedule. Hes learned a lot about scheduling and getting kids to events on time. Hes been doing a good job taking his bike most places, although thats cut back in December in order to work on knitting projects. Its kind of been a slow year for Neale.
Amy has one semester of nursing school left. She graduates in May, and over the summer shes hoping to get scheduled to take the NCLEX (the national boards exam) and finally become an RN. Shes 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

11
xmas/install Executable file
View File

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