r23371: Fix the misleading comment I added - it really *should*
[ira/wip.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/schema-map-* $SETUPDIR || exit 1
18 cp setup/DB_CONFIG $SETUPDIR || exit 1
19 cp setup/*.inf $SETUPDIR || exit 1
20 cp setup/*.ldif $SETUPDIR || exit 1
21 cp setup/*.zone $SETUPDIR || exit 1
22 cp setup/*.conf $SETUPDIR || exit 1
23
24 echo "Installing script tools"
25 mkdir -p "$BINDIR"
26 rm -f scripting/bin/*~
27 cp scripting/bin/* $BINDIR/ || exit 1
28
29 exit 0