r22375: implement check_env() logic in the frontend
[jelmer/samba4-debian.git] / source / script / installmisc.sh
1 #!/bin/sh
2 # install miscellaneous files
3
4 SRCDIR="$1"
5 JSDIR="$2"
6 SETUPDIR="$3"
7 BINDIR="$4"
8
9 cd $SRCDIR || exit 1
10
11 echo "Installing js libs"
12 mkdir -p $JSDIR || exit 1
13 cp scripting/libjs/*.js $JSDIR || exit 1
14
15 echo "Installing setup templates"
16 mkdir -p $SETUPDIR || exit 1
17 cp setup/*.ldif $SETUPDIR || exit 1
18 cp setup/*.zone $SETUPDIR || exit 1
19 cp setup/*.conf $SETUPDIR || exit 1
20
21 echo "Installing script tools"
22 mkdir -p "$BINDIR"
23 rm -f scripting/bin/*~
24 cp scripting/bin/* $BINDIR/ || exit 1
25
26 exit 0