#!/bin/sh # # File: userinstall # # Author: Ulli Horlacher (framstag@rus.uni-stuttgart.de) # # History: # # 12 Mar 98 Framstag initial version # # Shell script to install pussy, sendfile, receive, fetchfile, utf7decode, # and utf7encode in $HOME/bin. # This script is called by make. # # This file is covered by the GNU General Public License USERBIN=$HOME/bin USERMAN=$HOME/man cat<$HOME/.sendfile/.profile PATH=\$PATH:$USERBIN MANPATH=\$MANPATH:$USERMAN MAILPATH=\$MAILPATH:\$HOME/.sfspool/log?'new file in \$HOME/.sfspool!' export MAILPATH if [ ! -z "`receive -l 2>/dev/null`" ]; then echo echo 'You have files in your spool directory. Type "receive"' echo fi EOD if [ ! -d $USERBIN ]; then mkdir $USERBIN; fi cp src/sendfile src/receive src/fetchfile src/pussy src/utf7*code $USERBIN cp etc/sfconf $USERBIN/ if [ ! -d $USERMAN ]; then mkdir $USERMAN; fi if [ ! -d $USERMAN/man1 ]; then mkdir $USERMAN/man1; fi if [ ! -d $USERMAN/man7 ]; then mkdir $USERMAN/man7; fi cp doc/*.1 $USERMAN/man1/ cp doc/*.7 $USERMAN/man7/ echo installed in $USERBIN: cd $USERBIN ls -l sendfile receive fetchfile pussy utf7decode utf7encode sfconf echo echo "you may now want to add to your \$HOME/.profile (sorry, no csh-support) :" echo ". $HOME/.sendfile/.profile" echo