Skip to content

Commit 45d6236

Browse files
authored
bsd/macOS friendly version calculation (#1027)
1 parent ca3c5b9 commit 45d6236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ DEVPKGS=pycodestyle diff_cover autopep8 pylint coverage pydocstyle flake8 \
3030
pytest pytest-xdist isort
3131
DEBDEVPKGS=pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
3232
python-flake8 python-mock shellcheck
33-
VERSION=1.0.$(shell date +%Y%m%d%H%M%S --utc --date=`git log --first-parent \
34-
--max-count=1 --format=format:%cI`)
33+
VERSION=1.0.$(shell TZ=UTC git log --first-parent --max-count=1 \
34+
--format=format:%cd --date=format-local:%Y%m%d%H%M%S)
3535
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
3636
UNAME_S=$(shell uname -s)
3737
ifeq ($(UNAME_S),Linux)

0 commit comments

Comments
 (0)