#!/bin/sh alias uglify-js=$PWD/bin/uglifyjs UGLIFY_OPTIONS=$@ minify_in_situ() { ARGS="$UGLIFY_OPTIONS --validate --in-situ" DIRS="$1" echo '> uglify-js' $DIRS $UGLIFY_OPTIONS for i in `find $DIRS -type f -name '*.js'` do ARGS="$ARGS $i" done uglify-js $ARGS } npm_install() { PKG="$1" while !(npm install $PKG); do while !(npm cache clean --force); do echo "'npm cache clean' failed - retrying..."; done done } rm -rf tmp/bootstrap \ && git clone --depth 1 --branch v5.0.0-beta2 https://github.com/twbs/bootstrap.git tmp/bootstrap \ && cd tmp/bootstrap \ && rm -rf .git/hooks \ && patch -p1 <