mergejschecker.sh 475 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. #Regenerate the vendors core.js
  3. echo
  4. echo "Regenerating core/vendor/core.js"
  5. d=`dirname $(readlink -f $0)`
  6. php $d/mergejs.php
  7. files=`git diff --name-only`
  8. for file in $files
  9. do
  10. if [[ $file == core/vendor/core.js ]]
  11. then
  12. echo "The merged vendor file is not up to date"
  13. echo "Please run: php build/mergejs.php"
  14. echo "And commit the result"
  15. break
  16. fi
  17. done
  18. echo "Vendor js merged as expected. Carry on"
  19. exit 0