#!/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 } rm -rf tmp/acorn \ && git clone https://github.com/acornjs/acorn.git tmp/acorn \ && cd tmp/acorn \ && rm -rf .git/hooks \ && git checkout 74b59384320ced82e09da2e8fdbed16810f7379a \ && patch -l -p1 <