File: userinstall

package info (click to toggle)
sendfile 2.1b.20080616-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,148 kB
  • sloc: ansic: 13,128; sh: 4,193; perl: 844; makefile: 132; java: 36; csh: 3
file content (47 lines) | stat: -rwxr-xr-x 1,295 bytes parent folder | download | duplicates (9)
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