2018-09-28 22:00:23 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
REPODIR=`git rev-parse --show-toplevel`
|
|
|
|
|
|
|
|
cd $REPODIR
|
|
|
|
|
|
|
|
# Settings
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OC.Settings.Templates settings/js/templates -f settings/js/templates.js
|
2018-09-28 22:00:23 +03:00
|
|
|
|
2018-10-01 20:20:32 +03:00
|
|
|
# Systemtags
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
|
2018-10-01 20:20:32 +03:00
|
|
|
|
2018-10-01 21:46:29 +03:00
|
|
|
# Share
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OC.Share.Templates core/js/share -f core/js/sharetemplates.js
|
2018-10-01 21:46:29 +03:00
|
|
|
|
2018-09-28 22:00:23 +03:00
|
|
|
# Files app
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
|
2018-09-28 22:00:23 +03:00
|
|
|
|
2018-10-15 15:55:25 +03:00
|
|
|
# Workflowengine
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OCA.WorkflowEngine.Templates apps/workflowengine/js/templates -f apps/workflowengine/js/templates.js
|
2018-10-01 20:11:22 +03:00
|
|
|
|
2018-10-15 12:54:57 +03:00
|
|
|
# Sharing
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
|
2018-10-15 12:54:57 +03:00
|
|
|
|
2018-10-19 09:41:01 +03:00
|
|
|
# Files external
|
2019-09-30 17:20:44 +03:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
|
2018-10-19 09:41:01 +03:00
|
|
|
|
2018-09-28 22:00:23 +03:00
|
|
|
if [[ $(git diff --name-only) ]]; then
|
|
|
|
echo "Please submit your compiled handlebars templates"
|
2018-09-28 22:03:43 +03:00
|
|
|
echo
|
|
|
|
git diff
|
2018-09-28 22:00:23 +03:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-09-28 22:03:43 +03:00
|
|
|
|
|
|
|
echo "All up to date! Carry on :D"
|
2018-09-28 22:00:23 +03:00
|
|
|
exit 0
|