compile-handlebars-templates.sh 579 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. REPODIR=`git rev-parse --show-toplevel`
  3. cd $REPODIR
  4. # Settings
  5. handlebars -n OC.Settings.Templates settings/js/authtoken.handlebars -f settings/js/templates.js
  6. # Contactsmenu
  7. handlebars -n OC.ContactsMenu.Templates core/js/contactsmenu -f core/js/contactsmenu_templates.js
  8. # Files app
  9. handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
  10. if [[ $(git diff --name-only) ]]; then
  11. echo "Please submit your compiled handlebars templates"
  12. echo
  13. git diff
  14. exit 1
  15. fi
  16. echo "All up to date! Carry on :D"
  17. exit 0