r21029: - Remove now unused failure checking code
[Samba.git] / source / script / installmodules.sh
blobfb0ad90c14b5f66e6011c0fe1146f3130525a7eb
1 #!/bin/sh
3 INSTALLPERMS=$1
4 LIBDIR=$2
5 shift
6 shift
7 shift
9 if [ ! -d $LIBDIR ]; then
10 mkdir $LIBDIR
11 if [ ! -d $LIBDIR ]; then
12 echo Failed to make directory $LIBDIR
13 exit 1
17 for p in $*; do
18 p2=`basename $p`
19 echo Installing $p as $LIBDIR/$p2
20 cp -f $p $LIBDIR/
21 chmod $INSTALLPERMS $LIBDIR/$p2
22 done
25 cat << EOF
26 ======================================================================
27 The modules are installed. You may uninstall the modules using the
28 command "make uninstallmodules" or "make uninstall" to uninstall
29 binaries, man pages, shell scripts and modules.
30 ======================================================================
31 EOF
33 exit 0