1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #!/bin/bash
- #shellcheck disable=SC2034
- # MKit - simple install helper
- # See LICENSE file for copyright and license details.
-
-
- #
- # Bump size (for vbump_? and release_?)
- #
- MKIT_BUMPSIZE=${MKIT_BUMPSIZE:-1}
-
- #
- # Debug mode (true|false)
- #
- MKIT_DEBUG=${MKIT_DEBUG:-false}
-
- #
- # Default deploy mode for files
- #
- MKIT_DEFAULT_MODE="644"
-
- #
- # Dry mode (true|false)
- #
- # Set to true to not install anything. Implies MKIT_DEBUG.
- #
- MKIT_DRY=${MKIT_DRY:-false}
-
- #
- # Path to mkit.ini
- #
- MKIT_INI=${MKIT_INI:-mkit.ini}
-
- #
- # Limit ini expansion depth
- #
- # To avoid endless loops, this value is subtracted each
- # time ini() expands a reference; when zero is reached,
- # no more expansions happen.
- #
- MKIT_INI_EXPAND=2
-
- #
- # Path to MKit local config and temp
- #
- # Typically hidden in project root, here MKit can
- # save its temporary lists.
- #
- MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
-
- #
- # Package name
- #
- # Used as base for tarball and in some default macros.
- #
- MKIT_PROJ_PKGNAME=""
-
- #
- # Add time-based ordinal tag to SemVer build data?
- #
- # Can be 'none', 'ctime' or 'btime'.
- #
- # If 'ctime', devel builds have also timestamp-based tag in format of
- # `t%Y%m%d%H%M%S`, that is, a small character 't' followed by timestamp
- # without non-digit characters. The timestamps are in UTC, ie. timezones
- # need not apply. 'btime' has the same format, except that it's derived
- # from build time, while 'ctime' is from last commit's commit date.
- #
- # This helps with deploying development builds where packaging system
- # is not SemVer-compliant and makes it hard to install arbitrary version.
- # For example, old yum version (as of RHEL-6) will not let you install
- # version that it deems older than is installed, making it hard to
- # continually upgrade during active development. While packaging
- # systems have their own rukes (and SemVer says both versions should be
- # considered same) this tag will make it more likely to "win" the build
- # you made later.
- #
- # Note that this does not affect clean builds (ie. builds from clean
- # repo with HEAD corresponding to latest version tag.).
- #
- # Also note that 'btime' makes the version non-deterministic: merely
- # initiating the build a second later will result in different version.
- #
- MKIT_TTAG=${MKIT_TTAG:-ctime}
-
- #
- # This MKit version
- #
- MKIT_VERSION=0.0.35
|