forked from PGBuildFarm/client-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 868 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 868 Bytes
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
# Copyright (c) 2003-2010, Andrew Dunstan
# See accompanying License file for license details
PERLFILES = run_build.pl run_web_txn.pl run_branches.pl \
update_personality.pl setnotes.pl \
build-farm.conf \
PGBuild/SCM.pm PGBuild/Options.pm \
PGBuild/Modules/Skeleton.pm
FILES = License README $(PERLFILES)
CREL := $(if $(REL),$(strip $(subst .,_, $(REL))),YOU_NEED_A_RELEASE)
.PHONY: tag
tag:
sed -i -e "s/VERSION = '[^']*';/VERSION = 'REL_$(REL)';/" $(FILES)
git commit -a -m 'Mark Release '$(REL)
git tag -m 'Release $(REL)' REL_$(CREL)
@echo Now do: git push --tags origin master
.PHONY: release
release:
@echo REL = $(CREL)
mkdir build-farm-$(REL)
tar -cf - $(FILES) | tar -C build-farm-$(REL) -xf -
tar -z -cf build-farm-$(CREL).tgz build-farm-$(REL)
rm -rf build-farm-$(REL)
tidy:
perltidy -b -bl -nsfs -naws -l=80 -ole=unix $(PERLFILES)