1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/script/installmisc.sh
Andrew Tridgell f3d61cc615 r8576: install scripts from scripting/bin/
(This used to be commit a64490d1e5)
2007-10-10 13:29:40 -05:00

26 lines
509 B
Bash
Executable File

#!/bin/sh
# install miscellaneous files
SRCDIR="$1"
LIBDIR="$2"
BINDIR="$3"
cd $SRCDIR || exit 1
echo "Installing js libs"
mkdir -p $LIBDIR/js || exit 1
cp scripting/libjs/*.js $LIBDIR/js || exit 1
echo "Installing setup templates"
mkdir -p $LIBDIR/setup || exit 1
cp setup/*.ldif $LIBDIR/setup || exit 1
cp setup/*.zone $LIBDIR/setup || exit 1
cp setup/*.conf $LIBDIR/setup || exit 1
echo "Installing script tools"
mkdir -p "$BINDIR"
rm -f scripting/bin/*~
cp scripting/bin/* $BINDIR/ || exit 1
exit 0