-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
43 lines (33 loc) · 825 Bytes
/
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
42
43
#!/usr/bin/make -f -r
# This MakeFile provides development shortcut to frequent tasks.
SHELL=/bin/sh
CUT=cut
GIT=git
GREP=grep
DATE=date
ECHO=echo
MKDIR=mkdir
TOUCH=touch
RM=rm
RM_RF=${RM} -rf
SED=sed
SORT=sort
TAR=tar
UNIQ=uniq
srcdir=.
THENAME :=`cat "${srcdir}/NAME"`
THEVERSION :=`cat "${srcdir}/VERSION"`
all: AUTHORS HEARTBEAT
AUTHORS:
cd ${srcdir}
${ECHO} "Authors\n=======\nWe'd like to thank the following people for their contributions.\n\n" > ${srcdir}/AUTHORS.md
${GIT} log --raw | ${GREP} "^Author: " | ${SORT} | ${UNIQ} | ${CUT} -d ' ' -f2- | ${SED} 's/^/- /' >> ${srcdir}/AUTHORS.md
${GIT} add AUTHORS.md
HEARTBEAT:
cd ${srcdir}
${DATE} --utc +%Y-%m > ${srcdir}/HEARTBEAT
${GIT} add HEARTBEAT
gitcommit: AUTHORS HEARTBEAT
cd ${srcdir}
- ${GIT} commit
.PHONY: all AUTHORS HEARTBEAT gitcommit