2018-09-28 19:00:23 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
REPODIR=`git rev-parse --show-toplevel`
|
|
|
|
|
|
|
|
cd $REPODIR
|
|
|
|
|
|
|
|
# Settings
|
2019-09-30 14:20:44 +00:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OC.Settings.Templates settings/js/templates -f settings/js/templates.js
|
2018-09-28 19:00:23 +00:00
|
|
|
|
2018-10-01 17:20:32 +00:00
|
|
|
# Systemtags
|
2019-09-30 14:20:44 +00:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
|
2018-10-01 17:20:32 +00:00
|
|
|
|
2018-10-01 18:46:29 +00:00
|
|
|
# Share
|
2019-09-30 14:20:44 +00:00
|
|
|
node node_modules/handlebars/bin/handlebars -n OC.Share.Templates core/js/share -f core/js/sharetemplates.js
|
2018-10-01 18:46:29 +00:00
|
|
|
|
2018-09-28 19:00:23 +00:00
|
|
|
# Files app
|
2019-09-30 14:20:44 +00:00
|
|
|
node node_modules/handlebars/bin/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-15 09:54:57 +00:00
|
|
|
# Sharing
|
2019-09-30 14:20:44 +00: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 09:54:57 +00:00
|
|
|
|
2018-10-19 06:41:01 +00:00
|
|
|
# Files external
|
2019-09-30 14:20:44 +00: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 06:41:01 +00:00
|
|
|
|
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
|