summaryrefslogtreecommitdiff
path: root/source4/script/installmisc.sh
blob: dab1b527ca227047d296a14ad708ce8e76b89064 (plain)
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
#!/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