#!/bin/bash ARG_DEFS=( "--version=(.*)" ) function run { PROJECT_DIR=$SCRIPT_DIR/../ cd $SCRIPT_DIR/../config/lib/js/angular/ rm -rf *.js wget https://code.angularjs.org/$VERSION/angular{,-sanitize,-animate,-resource,-aria,-messages}{.min.js,.js} # # no min versions of mocks and scenario wget https://code.angularjs.org/$VERSION/angular{-scenario,-mocks}.js cd $PROJECT_DIR echo "Setting bower.json angular versions to $VERSION" replaceJsonProp "bower.json" "angular" "$VERSION" replaceJsonProp "bower.json" "angular-animate" "$VERSION" replaceJsonProp "bower.json" "angular-sanitize" "$VERSION" } source $(dirname $0)/utils.inc