forked from jheiss/cronwrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 853 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
VER=0.0.6
# Semantic Versioning (http://semver.org/) compliant tag name
TAGNAME=v$(VER)
all: dist
test:
prove
dist: test
mkdir cronwrap-$(VER)
git archive $(TAGNAME) | tar -x -C cronwrap-$(VER)
tar czf cronwrap-$(VER).tar.gz cronwrap-$(VER)
rm -rf cronwrap-$(VER)
openssl md5 cronwrap-$(VER).tar.gz > cronwrap-$(VER).tar.gz.md5
openssl sha1 cronwrap-$(VER).tar.gz > cronwrap-$(VER).tar.gz.sha1
gpg --detach --armor cronwrap-$(VER).tar.gz
tag:
git tag $(TAGNAME)
git push --tags
tpkg:
rm -rf tpkgwork
mkdir tpkgwork
sed 's/%VERSION%/$(VER)/' tpkg.yml > tpkgwork/tpkg.yml
mkdir -p tpkgwork/reloc/bin
cp -p cronwrap tpkgwork/reloc/bin
mkdir -p tpkgwork/reloc/share/doc/cronwrap-$(VER)
cp -p README.md TODO tpkgwork/reloc/share/doc/cronwrap-$(VER)
tpkg --make tpkgwork
rm -rf tpkgwork
clean:
rm cronwrap-*.tar.gz* cronwrap-*.tpkg