#!/bin/sh usage (){ cat /afs/sipb.mit.edu/project/outland/share/bloxsom/help.message.txt ; exit 1 } install_plugin(){ ln -s /afs/sipb.mit.edu/project/outland/share/bloxsom/plugins/$1 ~/www/bloxsom/plugins/$1 ; exit 1 } get_started(){ cd ~/www/ || mkdir ~/www && echo "you have ~/www" cd bloxsom || mkdir bloxsom && echo "you have ~/www/bloxsom" cd plugins || mkdir plugins && echo "you have ~/www/bloxsom/plugins" exit 1 } while getopts hp:s opt; do case "$opt" in h) usage ;; p) install_plugin "$OPTARG" ;; s) get_started ;; esac done exec /afs/sipb.mit.edu/project/outland/share/bloxsom/bloxsom.pl -password='bloxsom' $@