You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
682 B

  1. #!/usr/bin/env bash
  2. #
  3. # SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. #
  6. REPODIR=`git rev-parse --show-toplevel`
  7. cd $REPODIR
  8. # Settings
  9. node node_modules/handlebars/bin/handlebars -n OC.Settings.Templates apps/settings/js/templates -f apps/settings/js/templates.js
  10. # Files external
  11. node node_modules/handlebars/bin/handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
  12. if [[ $(git diff --name-only) ]]; then
  13. echo "Please submit your compiled handlebars templates"
  14. echo
  15. git diff
  16. exit 1
  17. fi
  18. echo "All up to date! Carry on :D"
  19. exit 0