Changeset 36491


Ignore:
Timestamp:
2022-08-25T22:12:13+12:00 (6 weeks ago)
Author:
davidb
Message:

Improved install script that resolved @gsdl3srchome@ entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/webswing/trunk/INSTALL.sh

    r36487 r36491  
    11#!/bin/bash
    22
    3 if [ ! -d ../../web/ext/webswing ] ; then
    4     echo "Creating directory:"
    5     echo "    ../../web/ext/webswing"
    6    
    7     mkdir ../../web/ext/webswing
    8     mkdir ../../web/ext/webswing/etc
     3if [ "x$GSDL3SRCHOME" = "x" ] ; then
     4    pushd ../..
     5    . ./gs3-setup-cli.sh
     6    . ./gs3-setup.sh
     7    popd
    98fi
    109
    11 echo "Copying web/etc/catalina-extra.properties => ../../web/ext/webswing/etc/."
    12 /bin/cp web/etc/catalina-opts-extra.args ../../web/ext/webswing/etc/.
     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
    1318
    14 
    15 echo "Copying web/etc/webswing.properties => ../../web/ext/webswing/etc/."
    16 /bin/cp web/etc/webswing.properties ../../web/ext/webswing/etc/.
    17 echo "Copying web/etc/webswing.config => ../../web/ext/webswing/etc/."
    18 /bin/cp web/etc/webswing.config ../../web/ext/webswing/etc/.
     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
    1926
    2027
    2128for d in api fonts ssl ; do
    22     echo "Copying web/$d/ => ../../web/ext/webswing/."
    23     /bin/cp -r web/$d ../../web/ext/webswing/.
     29    echo "Copying web/$d/ => \$GSDL3SRCHOME/web/ext/webswing/."
     30    /bin/cp -r web/$d $GSDL3SRCHOME/web/ext/webswing/.
    2431done
Note: See TracChangeset for help on using the changeset viewer.