#!/bin/bash
FILES=(
  '../src/initialize.js'
  '../src/pointermap.js'
  '../src/dispatcher.js'
  '../src/platform-events.js'
  '../src/flick.js'
  '../src/finalize.js'
)

cat ${FILES[@]} | ../third_party/uglifyjs/bin/uglifyjs -o pointerevents.js

#!/bin/bash
UGLIFY='../third_party/uglifyjs/bin/uglifyjs'
FILES=(
  '../src/initialize.js'
  '../src/pointermap.js'
  '../src/dispatcher.js'
  '../src/platform-events.js'
)

if [[ ! -x $UGLIFY ]]; then
cat <<EOF
Please run git submodule update --init from the top level of the repository to
check out uglifyjs for the build process
EOF
exit
fi

cat ${FILES[@]} | ${UGLIFY} -o pointerevents.js

Check for uglify submodule before trying to make a build
Check for uglify submodule before trying to make a build
