defaults.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # -*- mode: sh; tab-width: 4; coding: utf-8 -*-
  2. # vim: ts=4 noet ai ft=sh
  3. # Default values of add-on manifest variables.
  4. # This file is part of JPM.sh.
  5. # Copyright (C) 2016 the Desktopd developers
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. # Basic information
  20. addon_id=''
  21. addon_version=''
  22. addon_release_phase='stable'
  23. addon_name=''
  24. addon_license_id='GPL-3.0+'
  25. # Additional information
  26. addon_author=''
  27. addon_description=''
  28. addon_website_uri=''
  29. # Source code structure
  30. addon_src_dir='src'
  31. addon_main_path='main.js'
  32. # JPM.sh does not check JSON syntax.
  33. # Ignored if no such files exist.
  34. addon_preferences_json_path='preferences.json'
  35. addon_translators_json_path='translators.json'
  36. # Compatibility options
  37. addon_firefox_version='>=38.0a1'
  38. addon_fennec_version=''
  39. addon_thunderbird_version=''
  40. addon_seamonkey_version=''
  41. addon_unpack=''
  42. addon_support_private_browsing=''
  43. # Build options
  44. addon_minify_html=''
  45. addon_minify_css=''
  46. addon_minify_js=''
  47. # Utility functions
  48. jpmToBoolValue () {
  49. [ "$1" ] || {
  50. printf 'false'
  51. return
  52. }
  53. case "$1" in
  54. 0|false|no|No|NO|False|FALSE|off|Off|OFF)
  55. printf 'false'
  56. return
  57. ;;
  58. esac
  59. printf 'true'
  60. }