1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#!/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<<EOD>$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
|