You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

compile-handlebars-templates.sh 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  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/templates -f settings/js/templates.js
  6. # Systemtags
  7. handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
  8. # Share
  9. handlebars -n OC.Share.Templates core/js/share -f core/js/sharetemplates.js
  10. # Files app
  11. handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
  12. # Workflowengine
  13. handlebars -n OCA.WorkflowEngine.Templates apps/workflowengine/js/templates -f apps/workflowengine/js/templates.js
  14. # Sharing
  15. handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
  16. # Files external
  17. handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
  18. if [[ $(git diff --name-only) ]]; then
  19. echo "Please submit your compiled handlebars templates"
  20. echo
  21. git diff
  22. exit 1
  23. fi
  24. echo "All up to date! Carry on :D"
  25. exit 0