rules 1.61 KB
Newer Older
anarcat's avatar
anarcat committed
1 2 3 4 5 6
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

anarcat's avatar
anarcat committed
7 8
%:
	dh $@
anarcat's avatar
anarcat committed
9

anarcat's avatar
anarcat committed
10
override_dh_install:
11
	cp -r "$(CURDIR)/db/"  "$(CURDIR)/dns/"  "$(CURDIR)/http/" "$(CURDIR)/aegir.make" "$(CURDIR)/platform/" "$(CURDIR)/Provision/" "$(CURDIR)/Symfony/" "$(CURDIR)"/*.inc "$(CURDIR)"/*.php "$(CURDIR)"/*.info "$(CURDIR)/debian/aegir-provision/usr/share/drush/commands/provision/"
12

13 14
	# We need this nasty hack, because we added a directory.
	# TODO: this is really lame, there must be a better way to do this?
15
	if [ -d "$(CURDIR)/tests" ]; then cp -r "$(CURDIR)/tests/" "$(CURDIR)/debian/aegir-provision/usr/share/drush/commands/provision/"; fi
16

17
	cp "$(CURDIR)/debian/aegir-provision.lintian" "$(CURDIR)/debian/aegir-provision/usr/share/lintian/overrides/aegir-provision"
anarcat's avatar
anarcat committed
18

19 20 21
override_dh_install_init:
	dh_installinit --name=hosting-queued

anarcat's avatar
anarcat committed
22 23 24
DOMAIN?=$(shell hostname -f)
KEY?="-kjenkins@$(DOMAIN)"

25 26
# this builds a debian package based on what the current branches are
# this usually tests the latest release
anarcat's avatar
anarcat committed
27
jenkins-build-official:
28
	git-buildpackage -b --git-upstream-branch=origin/upstream --git-debian-branch=origin/debian --git-ignore-branch -kjenkins@ci.aegirproject.org
29

30
version=2.0~$(shell git log -n 1 --oneline | sed 's/ .*$$//')
anarcat's avatar
anarcat committed
31

anarcat's avatar
anarcat committed
32
# this builds a debian package but first updates the branches to follow the latest 2.x branch
33
# this assumes you are on a "debian" branch (of course)
anarcat's avatar
anarcat committed
34
jenkins-build-auto:
35
	dch -D unstable -v ${version} "automatic jenkins build ${BUILD_TAG}"
anarcat's avatar
anarcat committed
36
	git commit -m"dummy commit for jenkins ${BUILD_TAG} autobuild" debian/changelog
37
	git-buildpackage -b ${KEY}
38 39

show-version:
40
	@echo ${version}