Changeset 801


Ignore:
Timestamp:
Aug 11, 2010, 12:04:00 AM (10 years ago)
Author:
duh
Message:
  • and optimized it a bit more
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/gscf_continuous_integration.sh

    r800 r801  
    134134        cd $PATH_GRAILS_SOURCE
    135135fi
    136 
    137 # uninstall development plugins
    138 index=0
    139 while [ "$index" -lt "${#DEV_PLUGINS[@]}" ]
    140 do
    141         PLUGIN_INSTALLED=`find /home/tomcat/.grails/$GRAILS_VERSION/projects/gscf/plugins/ -maxdepth 1|grep -i ${DEV_PLUGINS[index]}|wc -l`
    142         if [ "$PLUGIN_INSTALLED" -gt "0" ]; then
    143                 echo $STAMP uninstalling ${DEV_PLUGINS[index]} plugin
    144                 grails uninstall-plugin ${DEV_PLUGINS[index]} > /dev/null
    145         fi
    146         ((index++))
    147 done
    148 
    149 # patch index page to contain revision information
    150 echo $STAMP patching index page...
    151 sed -i 's/<\/b>/<\/b> \(<font color="red">svn revision: '$SVN_REVISION', deployed at: '$STAMP'<\/font>\)/g' grails-app/views/home/index.gsp
    152 sed -i 's/Welcome to GSCF version/Welcome to the <b>continuous integration build<\/b> of GSCF/g' grails-app/views/home/index.gsp
    153136
    154137# stop tomcat
     
    166149done
    167150
     151# uninstall development plugins
     152index=0
     153while [ "$index" -lt "${#DEV_PLUGINS[@]}" ]
     154do
     155        PLUGIN_INSTALLED=`find /home/tomcat/.grails/$GRAILS_VERSION/projects/gscf/plugins/ -maxdepth 1|grep -i ${DEV_PLUGINS[index]}|wc -l`
     156        if [ "$PLUGIN_INSTALLED" -gt "0" ]; then
     157                echo $STAMP uninstalling ${DEV_PLUGINS[index]} plugin
     158                grails uninstall-plugin ${DEV_PLUGINS[index]} > /dev/null
     159        fi
     160        ((index++))
     161done
     162
     163# patch index page to contain revision information
     164echo $STAMP patching index page...
     165sed -i 's/<\/b>/<\/b> \(<font color="red">svn revision: '$SVN_REVISION', deployed at: '$STAMP'<\/font>\)/g' grails-app/views/home/index.gsp
     166sed -i 's/Welcome to GSCF version/Welcome to the <b>continuous integration build<\/b> of GSCF/g' grails-app/views/home/index.gsp
     167
    168168# build new war
    169169echo $STAMP building new war...
Note: See TracChangeset for help on using the changeset viewer.