vars.sh 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #!/bin/bash
  2. #shellcheck disable=SC2034
  3. # MKit - simple install helper
  4. # See LICENSE file for copyright and license details.
  5. #
  6. # Bump size (for vbump_? and release_?)
  7. #
  8. MKIT_BUMPSIZE=${MKIT_BUMPSIZE:-1}
  9. #
  10. # Debug mode (true|false)
  11. #
  12. MKIT_DEBUG=${MKIT_DEBUG:-false}
  13. #
  14. # Default deploy mode for files
  15. #
  16. MKIT_DEFAULT_MODE="644"
  17. #
  18. # Dry mode (true|false)
  19. #
  20. # Set to true to not install anything. Implies MKIT_DEBUG.
  21. #
  22. MKIT_DRY=${MKIT_DRY:-false}
  23. #
  24. # Path to mkit.ini
  25. #
  26. MKIT_INI=${MKIT_INI:-mkit.ini}
  27. #
  28. # Limit ini expansion depth
  29. #
  30. # To avoid endless loops, this value is subtracted each
  31. # time ini() expands a reference; when zero is reached,
  32. # no more expansions happen.
  33. #
  34. MKIT_INI_EXPAND=2
  35. #
  36. # Path to MKit local config and temp
  37. #
  38. # Typically hidden in project root, here MKit can
  39. # save its temporary lists.
  40. #
  41. MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
  42. #
  43. # Package name
  44. #
  45. # Used as base for tarball and in some default macros.
  46. #
  47. MKIT_PROJ_PKGNAME=""
  48. #
  49. # Add time-based ordinal tag to SemVer build data?
  50. #
  51. # Can be 'none' or 'btime'.
  52. #
  53. # If 'btime', devel builds have also 'tXXXXXXXX' tag, where each
  54. # 'X' is a hexa-decimal digit of Unix timestamp taken when build
  55. # is initiated. This way, builds from same branch are guarranteed
  56. # to order based on build time (that is, until February 7th, 2106).
  57. #
  58. # Note that this makes devel and dirty builds non-deterministic,
  59. # but does not affect clean builds (ie. builds from clean repo
  60. # with HEAD corresponding to latest version tag.).
  61. #
  62. MKIT_TTAG=${MKIT_TTAG:-btime}
  63. #
  64. # This MKit version
  65. #
  66. MKIT_VERSION=0.0.33