source: gs3-extensions/webswing/trunk/web/INSTALL.sh@ 36495

Last change on this file since 36495 was 36495, checked in by davidb, 20 months ago

Tweak resulting from new directory the script is run from

  • Property svn:executable set to *
File size: 835 bytes
Line 
1#!/bin/bash
2
3if [ "x$GSDL3SRCHOME" = "x" ] ; then
4 pushd ../../..
5 . ./gs3-setup-cli.sh
6 . ./gs3-setup.sh
7 popd
8fi
9
10if [ ! -d "$GSDL3SRCHOME/web/ext/webswing" ] ; then
11 echo "Creating directories:"
12 echo " $GSDL3SRCHOME/web/ext/webswing"
13 echo " $GSDL3SRCHOME/web/ext/webswing/etc"
14
15 mkdir "$GSDL3SRCHOME/web/ext/webswing"
16 mkdir "$GSDL3SRCHOME/web/ext/webswing/etc"
17fi
18
19for f in catalina-opts-extra.args webswing.properties webswing.config ; do
20
21 echo "Copying web/etc/$f.in => \$GSDL3SRCHOME/web/ext/webswing/etc/$f"
22 cat web/etc/$f.in \
23 | sed "s|@gsdl3srchome@|$GSDL3SRCHOME|g" \
24 > $GSDL3SRCHOME/web/ext/webswing/etc/$f
25done
26
27
28for d in api fonts ssl ; do
29 echo "Copying web/$d/ => \$GSDL3SRCHOME/web/ext/webswing/."
30 /bin/cp -r web/$d $GSDL3SRCHOME/web/ext/webswing/.
31done
Note: See TracBrowser for help on using the repository browser.