2018-09-28 22:00:23 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
REPODIR=`git rev-parse --show-toplevel`
|
|
|
|
|
|
|
|
cd $REPODIR
|
|
|
|
|
|
|
|
# Settings
|
2018-10-15 11:44:24 +03:00
|
|
|
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
|
|
|
|
handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
|
|
|
|
|
2018-10-01 21:46:29 +03:00
|
|
|
# Share
|
|
|
|
handlebars -n OC.Share.Templates core/js/share -f core/js/sharetemplates.js
|
|
|
|
|
2018-09-28 22:00:23 +03:00
|
|
|
# Files app
|
2018-10-01 11:43:17 +03:00
|
|
|
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-01 20:11:22 +03:00
|
|
|
# Comments app
|
|
|
|
handlebars -n OCA.Comments.Templates apps/comments/js/templates -f apps/comments/js/templates.js
|
|
|
|
|
2018-10-01 21:53:35 +03:00
|
|
|
# Versions app
|
|
|
|
handlebars -n OCA.Versions.Templates apps/files_versions/js/templates -f apps/files_versions/js/templates.js
|
|
|
|
|
2018-10-15 15:55:25 +03:00
|
|
|
# Workflowengine
|
|
|
|
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
|
|
|
|
handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
|
|
|
|
|
2018-10-19 09:41:01 +03:00
|
|
|
# Files external
|
2018-10-19 18:35:13 +03:00
|
|
|
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
|