Changeset 721


Ignore:
Timestamp:
Jul 26, 2010, 6:41:05 PM (13 years ago)
Author:
duh
Message:
  • added script to minify javascript or CSS files
  • included automated minifying of javascript and CSS files to continuous integration script
Location:
misc/scripts
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/gscf_continuous_integration.sh

    r704 r721  
    9292echo $STAMP "deploying revision "$SVN_REVISION" (version "$APP_VERSION" / Grails "$GRAILS_VERSION") and undeploying revision "$RUNNING_REVISION"..."
    9393
     94# create minified JS and CSS if required
     95MINIFIED=`ls web-app/js/*.js web-app/css/*.css|grep -vi min.|xargs -i ~/scripts/minify_if_changed.sh {} 1|wc -l`
     96if [ $MINIFIED -gt 0 ]; then
     97        echo $STAMP "one or more JS / CSS files were minified, committing changes..."
     98        $SVN commit -m "Automated continuous integration commit of minified JS/CSS" web-app/css/*.min.css web-app/js/*.min.js > /dev/null
     99        SVN_REVISION=`$SVN update | sed -n 's/At revision \(.*\)\./\1/p'`
     100        echo $STAMP "updated SVN revision to "$SVN_REVISION
     101fi
     102
    94103# see if this grails version is available
    95104if [ ! -d "/home/tomcat/grails-"$GRAILS_VERSION ]
Note: See TracChangeset for help on using the changeset viewer.