#!/bin/sh if [ "$1" = "-h" ] then echo "Usage:" echo $0 echo " install in default location (/usr/local)" echo " may require root privileges" echo "$0 " echo " install at the specified prefix" exit 1; fi if [ "s$1" = "s" ] then INSTALL_PREFIX=/usr/local else INSTALL_PREFIX=$1 fi mkdir -p $INSTALL_PREFIX/share/man/man1 mkdir -p $INSTALL_PREFIX/bin install -m 644 ./todo.1 $INSTALL_PREFIX/share/man/man1/todo.1 install -m 755 ./todo $INSTALL_PREFIX/bin/todo