123456789101112131415161718192021222324 |
- #!/usr/bin/env bash
- REPODIR=`git rev-parse --show-toplevel`
- cd $REPODIR
- node node_modules/handlebars/bin/handlebars -n OC.Settings.Templates apps/settings/js/templates -f apps/settings/js/templates.js
- node node_modules/handlebars/bin/handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
- if [[ $(git diff --name-only) ]]; then
- echo "Please submit your compiled handlebars templates"
- echo
- git diff
- exit 1
- fi
- echo "All up to date! Carry on :D"
- exit 0
|