#!/bin/sh

# The version of Plans to distribute
rev=$1

echo Fetching plans_$rev.zip...
curl -O http://www.planscalendar.com/release/plans_$rev.zip 2>/dev/null >/dev/null

echo Installing Plans to: `pwd`
unzip plans_$rev.zip
mv ./plans_$rev/* ./
rm plans_$rev.zip
rm -rf ./plans_$rev

echo Install complete!
echo Point your browser at plans.cgi

