Changeset 801
- Timestamp:
- Aug 11, 2010, 12:04:00 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/scripts/gscf_continuous_integration.sh
r800 r801 134 134 cd $PATH_GRAILS_SOURCE 135 135 fi 136 137 # uninstall development plugins138 index=0139 while [ "$index" -lt "${#DEV_PLUGINS[@]}" ]140 do141 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" ]; then143 echo $STAMP uninstalling ${DEV_PLUGINS[index]} plugin144 grails uninstall-plugin ${DEV_PLUGINS[index]} > /dev/null145 fi146 ((index++))147 done148 149 # patch index page to contain revision information150 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.gsp152 sed -i 's/Welcome to GSCF version/Welcome to the <b>continuous integration build<\/b> of GSCF/g' grails-app/views/home/index.gsp153 136 154 137 # stop tomcat … … 166 149 done 167 150 151 # uninstall development plugins 152 index=0 153 while [ "$index" -lt "${#DEV_PLUGINS[@]}" ] 154 do 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++)) 161 done 162 163 # patch index page to contain revision information 164 echo $STAMP patching index page... 165 sed -i 's/<\/b>/<\/b> \(<font color="red">svn revision: '$SVN_REVISION', deployed at: '$STAMP'<\/font>\)/g' grails-app/views/home/index.gsp 166 sed -i 's/Welcome to GSCF version/Welcome to the <b>continuous integration build<\/b> of GSCF/g' grails-app/views/home/index.gsp 167 168 168 # build new war 169 169 echo $STAMP building new war...
Note: See TracChangeset
for help on using the changeset viewer.