bug fixes after testing
[Evergreen.git] / Open-ILS / src / extras / autogen.sh
1 #!/bin/bash
2
3 CONFIG="$1";
4
5 [ -z "$CONFIG" ] && echo "usage: $0 <bootstrap_config>" && exit;
6
7
8 JSDIR="/openils/var/web/opac/common/js/";
9
10 echo "Updating fieldmapper";
11 perl fieldmapper.pl             > "$JSDIR/fmall.js";
12
13 echo "Updating web_fieldmapper";
14 perl fieldmapper.pl "web_core"  > "$JSDIR/fmcore.js";
15
16 echo "Updating web_fieldmapper";
17 perl fieldmapper.pl "web"       > "$JSDIR/fmextcore.js";
18
19 echo "Updating OrgTree";
20 perl org_tree_js.pl "$CONFIG" > "$JSDIR/OrgTree.js";
21
22 echo "Done";
23