root/gs3-extensions/i-jetty/trunk/src/WEBAPP-ROOT-TO-SDCARD.sh @ 23888

Revision 23888, 1.0 KB (checked in by davidb, 10 years ago)

Minor tidy-up tweaks to install scripts

Line 
1#!/bin/bash
2
3if [ ! -d $SDCARD_GSDL3HOME ] ; then
4  # First time install has been run => do a full copy
5  mode="Installing"
6
7else
8  # Only need to regenerate 'lib' folder
9  mode="Updating"
10fi
11
12echo "#---"
13echo "# $mode $GSDL3HOME -> $SDCARD_GSDL3HOME"
14if [ $mode = "Installing" ] ; then
15  echo "# (this may take several minutes)"
16  echo "#---"
17  echo ""
18  (cd $GSDL3HOME && find . -type d ) \
19    | egrep -v '/\.svn' \
20    | egrep -v 'sites/' \
21    | egrep -v 'WEB-INF/classes' \
22    | egrep -v 'WEB-INF/lib' \
23    | xargs -I {} mkdir -p $SDCARD_GSDL3HOME/{}
24else
25  echo "#---"
26  echo ""
27fi
28
29
30(cd $GSDL3HOME && find . -type f ) \
31  | egrep -v '/\.svn' \
32  | egrep -v 'sites/' \
33  | egrep -v 'WEB-INF/classes' \
34  | egrep -v 'WEB-INF/lib' \
35  | xargs -I {} /bin/cp -u -v $GSDL3HOME/{} $SDCARD_GSDL3HOME/{}
36
37
38if [ ! -d $SDCARD_GSDL3HOME/sites/localsite ] ; then
39  echo "Creating 'localsite' in $SDCARD_GSDLHOME"
40  mkdir $SDCARD_GSDL3HOME/sites/localsite
41fi
42
43/bin/cp -u -v -r sites/without-jni/* $SDCARD_GSDL3HOME/sites/localsite/.
44
45
46
Note: See TracBrowser for help on using the browser.