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