-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
36 lines (32 loc) · 971 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
all:
cd util && make
clean:
cd util && make clean
#
# Developer targets. To use this:
# 1. Change ./VERSION to reflect the release version
# 2. Commit
# 3. make release-tag
# 4. make release
# 5. Change ./VERSION to reflect the post-release version
#
VERSION = $(shell cat ./VERSION)
NAME = backup-bouncer
release-tag:
echo "Tagging release-$(VERSION)"
TAGSDIR=`svn info | grep URL | awk '{print $$2}'`-tags \
&& svn ls $$TAGSDIR \
| ( grep -q release-$(VERSION) \
|| svn cp . $$TAGSDIR/release-$(VERSION) )
release:
echo "Packaging version $(VERSION)"
[ -d release ] || mkdir release
TAGSDIR=`svn info | grep URL | awk '{print $$2}'`-tags \
&& svn export $$TAGSDIR/release-$(VERSION) \
release/$(NAME)-$(VERSION)
cd release \
&& tar cvzf $(NAME)-$(VERSION).tgz $(NAME)-$(VERSION)
upload:
scp release/$(NAME)-$(VERSION).tgz \
n8gray.org:public_html/files/$(NAME)/
.PHONY: all clean release-tag release upload