BSD 4_3 development
[unix-history] / usr / contrib / B / ch_install
CommitLineData
df8078aa
C
1: 'Check if make install went allright.'
2
3bint="$1"
4bdir="$2"
5man1dir="$3"
6man5dir="$4"
7libdir="$5"
8
9errors="no"
10
11if test ! -r $bdir/b
12then
13 echo "*** Failed to install b in $bdir"
14 errors="yes"
15fi
16
17for f in bed $bint Bed_help
18do
19 if test ! -r $libdir/$f
20 then
21 echo "*** Failed to install $f in $libdir"
22 errors="yes"
23 fi
24done
25
26if test ! -r $man1dir/b.1
27then
28 echo "*** Failed to install b.1 manual in $man1dir"
29 errors="yes"
30fi
31
32if test ! -r $man5dir/bterminal.5
33then
34 echo "*** Failed to install bterminal.5 manual in $man5dir"
35 errors="yes"
36fi
37
38case $errors in
39yes)
40 exit 1
41 ;;
42no)
43 echo "The B system is installed."
44 echo "You can cleanup with 'make clean'."
45 exit 0
46 ;;
47esac