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
|
|
|
|
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-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
|
2018-10-19 15:35:13 +00:00
|
|
|
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
|