File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2020 Tsuyoshi Hombashi
3+ Copyright (c) 2020-2024 Tsuyoshi Hombashi
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1- AUTHOR := thombashi
21PACKAGE := tcolorpy
32
43BIN_DIR := $(shell pwd) /bin
@@ -8,6 +7,11 @@ PKG_BUILD_DIR := $(BUILD_WORK_DIR)/$(PACKAGE)
87PYTHON := python3
98BIN_CHANGELOG_FROM_RELEASE := $(BIN_DIR ) /changelog-from-release
109
10+ AUTHOR := Tsuyoshi Hombashi
11+ FIRST_RELEASE_YEAR := 2020
12+ LAST_UPDATE_YEAR := $(shell git log -1 --format=% cd --date=format:% Y)
13+
14+
1115$(BIN_CHANGELOG_FROM_RELEASE ) :
1216 GOBIN=$(BIN_DIR ) go install github.com/rhysd/changelog-from-release/v3@latest
1317
@@ -20,7 +24,7 @@ build: clean
2024build-remote : clean
2125 @mkdir -p $(BUILD_WORK_DIR )
2226 @cd $(BUILD_WORK_DIR ) && \
23- git clone https://github.com/$( AUTHOR ) /$(PACKAGE ) .git --depth 1 && \
27+ git clone https://github.com/thombashi /$(PACKAGE ) .git --depth 1 && \
2428 cd $(PACKAGE ) && \
2529 tox -e build
2630 ls -lh $(PKG_BUILD_DIR ) /dist/*
@@ -61,3 +65,8 @@ setup-dev: setup-ci
6165.PHONY : test
6266test :
6367 $(PYTHON ) -m tox -e py
68+
69+ .PHONY : update-copyright
70+ update-copyright :
71+ sed -i " s/^__copyright__ = .*/__copyright__ = f\" Copyright $( FIRST_RELEASE_YEAR) -$( LAST_UPDATE_YEAR) , {__author__}\" /" $(PACKAGE ) /__version__.py
72+ sed -i " s/^Copyright (c) .* $( AUTHOR) /Copyright (c) $( FIRST_RELEASE_YEAR) -$( LAST_UPDATE_YEAR) $( AUTHOR) /" LICENSE
Original file line number Diff line number Diff line change 11__author__ = "Tsuyoshi Hombashi"
2- __copyright__ = f"Copyright 2020, { __author__ } "
2+ __copyright__ = f"Copyright 2020-2024 , { __author__ } "
33__license__ = "MIT License"
44__version__ = "0.1.6"
55__maintainer__ = __author__
You can’t perform that action at this time.
0 commit comments