Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
  • Loading branch information
thombashi committed Aug 23, 2024
1 parent 0b35e71 commit 90f45af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ BIN_DIR := $(shell pwd)/bin
PYTHON := python3
BIN_CHANGELOG_FROM_RELEASE := $(BIN_DIR)/changelog-from-release

FIRST_RELEASE_YEAR := 2016
LAST_UPDATE_YEAR := $(shell git log -1 --format=%cd --date=format:%Y)


Expand Down Expand Up @@ -68,5 +69,5 @@ test:

.PHONY: update-copyright
update-copyright:
sed -i "s/^__copyright__ = .*/__copyright__ = f\"Copyright 2016-$(LAST_UPDATE_YEAR), {__author__}\"/" pathvalidate/__version__.py
sed -i "s/^Copyright (c) .* Tsuyoshi Hombashi/Copyright (c) 2016-$(LAST_UPDATE_YEAR) Tsuyoshi Hombashi/" LICENSE
sed -i "s/^__copyright__ = .*/__copyright__ = f\"Copyright $(FIRST_RELEASE_YEAR)-$(LAST_UPDATE_YEAR), {__author__}\"/" pathvalidate/__version__.py
sed -i "s/^Copyright (c) .* Tsuyoshi Hombashi/Copyright (c) $(FIRST_RELEASE_YEAR)-$(LAST_UPDATE_YEAR) Tsuyoshi Hombashi/" LICENSE

0 comments on commit 90f45af

Please sign in to comment.