blob: f8cf5b249d13166fc2eb5cad498a1d698854e464 (
plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# to build official release tarballs, handle tagging and publish.
# signing key
gpgsignkey=0x6CE95CA7
project=resource-agents
all: checks setup tag tarballs sha256 sign
checks:
ifeq (,$(version))
@echo ERROR: need to define version=
@exit 1
endif
@if [ ! -d .git ]; then \
echo This script needs to be executed from top level cluster git tree; \
exit 1; \
fi
setup: checks
./autogen.sh
./configure
make maintainer-clean
tag: setup ./tag-$(version)
tag-$(version):
ifeq (,$(release))
@echo Building test release $(version), no tagging
else
git tag -a -m "v$(version) release" v$(version) HEAD
@touch $@
endif
tarballs: tag
./autogen.sh
./configure
make distcheck
sha256: tarballs $(project)-$(version).sha256
$(project)-$(version).sha256:
ifeq (,$(release))
@echo Building test release $(version), no sha256
else
sha256sum $(project)-$(version)*tar* | sort -k2 > $@
endif
sign: sha256 $(project)-$(version).sha256.asc
$(project)-$(version).sha256.asc: $(project)-$(version).sha256
ifeq (,$(release))
@echo Building test release $(version), no sign
else
gpg --default-key $(gpgsignkey) \
--detach-sign \
--armor \
$<
endif
publish:
ifeq (,$(release))
@echo Building test release $(version), no publishing!
else
git push --tags origin
scp $(project)-$(version).* \
fedorahosted.org:$(project)
@echo Hey you!.. yeah you looking somewhere else!
@echo remember to update the wiki and send the email to cluster-devel and linux-cluster
endif
clean:
rm -rf $(project)*.tar.* $(project)*.sha* tag-*
|