deps.sh 696 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2014 SameGoal LLC. All Rights Reserved.
  4. # Use of this source code is governed by a BSD-style license that can be
  5. # found in the LICENSE file.
  6. set -u
  7. set -x
  8. gjslint=$(which gjslint)
  9. set -e
  10. mkdir -p /tmp/deps
  11. cd /tmp/deps
  12. # closure-compiler
  13. if [ ! -f compiler-latest.tar.gz ]; then
  14. wget http://dl.google.com/closure-compiler/compiler-latest.tar.gz
  15. tar xf compiler-latest.tar.gz
  16. fi
  17. # closure-linter
  18. if [ ! -x "$gjslint" ]; then
  19. sudo easy_install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz
  20. fi
  21. # closure-library
  22. if [ ! -d closure-library ]; then
  23. git clone https://github.com/google/closure-library.git
  24. fi
  25. set +x
  26. echo "Success"