forked from cloudposse-archives/copyright-header
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (36 loc) · 1.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#COPYRIGHT_CMD ?= copyright-header
COPYRIGHT_CMD ?= docker run --rm --volume `pwd`:$(COPYRIGHT_OUTPUT_DIR) osterman/copyright-header:latest
COPYRIGHT_LICENSE ?= GPL3
COPYRIGHT_HOLDER ?= Erik Osterman <[email protected]>
COPYRIGHT_YEAR ?= 2012-2017
COPYRIGHT_SOFTWARE ?= Copyright Header
COPYRIGHT_SOFTWARE_DESCRIPTION ?= A utility to manipulate copyright headers on source code files
COPYRIGHT_OUTPUT_DIR ?= /usr/src
COPYRIGHT_WORD_WRAP ?= 100
COPYRIGHT_PATHS ?= lib/:bin/:contrib/
remove-copyright:
$(COPYRIGHT_CMD) \
--license $(COPYRIGHT_LICENSE) \
--remove-path $(COPYRIGHT_PATHS) \
--guess-extension \
--copyright-holder '$(COPYRIGHT_HOLDER)' \
--copyright-software '$(COPYRIGHT_SOFTWARE)' \
--copyright-software-description '$(COPYRIGHT_SOFTWARE_DESCRIPTION)' \
--copyright-year $(COPYRIGHT_YEAR) \
--word-wrap $(COPYRIGHT_WORD_WRAP) \
--output-dir $(COPYRIGHT_OUTPUT_DIR)
add-copyright:
$(COPYRIGHT_CMD) \
--license $(COPYRIGHT_LICENSE) \
--add-path $(COPYRIGHT_PATHS) \
--guess-extension \
--copyright-holder '$(COPYRIGHT_HOLDER)' \
--copyright-software '$(COPYRIGHT_SOFTWARE)' \
--copyright-software-description '$(COPYRIGHT_SOFTWARE_DESCRIPTION)' \
--copyright-year $(COPYRIGHT_YEAR) \
--word-wrap $(COPYRIGHT_WORD_WRAP) \
--output-dir $(COPYRIGHT_OUTPUT_DIR)
bump:
gem bump
release:
rake release