Print prefixMap in a human-readable format.
[kai/samba.git] / source4 / 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/schema-map-* $SETUPDIR || exit 1
18 cp setup/DB_CONFIG $SETUPDIR || exit 1
19 cp setup/provision-backend $SETUPDIR || exit 1
20 cp setup/provision $SETUPDIR || exit 1
21 cp setup/newuser $SETUPDIR || exit 1
22 cp setup/*.inf $SETUPDIR || exit 1
23 cp setup/*.ldif $SETUPDIR || exit 1
24 cp setup/*.reg $SETUPDIR || exit 1
25 cp setup/*.zone $SETUPDIR || exit 1
26 cp setup/*.conf $SETUPDIR || exit 1
27 cp setup/*.php $SETUPDIR || exit 1
28 cp setup/*.txt $SETUPDIR || exit 1
29 cp setup/provision.smb.conf.dc $SETUPDIR || exit 1
30 cp setup/provision.smb.conf.member $SETUPDIR || exit 1
31 cp setup/provision.smb.conf.standalone $SETUPDIR || exit 1
32
33 echo "Installing script tools"
34 mkdir -p "$BINDIR"
35 rm -f scripting/bin/*~
36 cp scripting/bin/* $BINDIR/ || exit 1
37
38 exit 0