#!/bin/sh if test `whoami` != "root" ; then echo "-------------------------------------------------------------------" echo "ERROR! You must login as root in order to install this software" echo "-------------------------------------------------------------------" exit 0; fi if test -d $1 ; then echo "-------------------------------------------------------------------" echo "installing to: $1"; echo "-------------------------------------------------------------------" else echo "-------------------------------------------------------------------" echo "ERROR! The directory $1 does not exist." echo "You must choose an existing directory for installation." echo "-------------------------------------------------------------------" fi # copy file. if test -d $1/bin ; then echo else mkdir $1/bin fi cp ./bin/moth $1/bin/moth chmod 755 $1/bin/moth