summaryrefslogtreecommitdiffstats
path: root/build/compile-handlebars-templates.sh
blob: 1775f45b0feb370f48d018dd48ebb7ade28d7321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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