diff --git a/build/compile-handlebars-templates.sh b/build/compile-handlebars-templates.sh new file mode 100644 index 0000000000..1775f45b0f --- /dev/null +++ b/build/compile-handlebars-templates.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +REPODIR=`git rev-parse --show-toplevel` + +cd $REPODIR + +# Settings +handlebars -n OC.Settings.Templates settings/js/authtoken.handlebars -f settings/js/templates.js + +# Contactsmenu +handlebars -n OC.ContactsMenu.Templates core/js/contactsmenu -f core/js/contactsmenu_templates.js + +# Files app +handlebars -n OCA.Files.FileSummary.Templates apps/files/js/filesummary.handlebars -f apps/files/js/filesummary_template.js + +if [[ $(git diff --name-only) ]]; then + echo "Please submit your compiled handlebars templates" + exit 1 +fi + +exit 0