]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Add support for easily making a tarball and debs.
authorAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Wed, 14 Nov 2007 08:49:38 +0000 (21:49 +1300)
committerAndrew Ruthven <andrew@cyclops.etc.gen.nz>
Wed, 14 Nov 2007 08:49:38 +0000 (21:49 +1300)
.gitignore
Makefile [new file with mode: 0644]

index 15055494904a2e93eeaa1244d3ac494189a5eeb8..03f058a449ca07de252a46338481b77a862f034a 100644 (file)
@@ -1 +1,2 @@
 build-stamp
+build
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..155bcd3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+package=mythtv-status
+releases=etch sid
+
+build=dpkg-buildpackage -uc -us -rfakeroot
+version=`git-tag -l | head -1`
+
+deb=$(package)_$(version)_all.deb
+tarball=build/tarball/$(package)-$(version).tar.gz
+
+DEBS=$(foreach release, $(release), build/$(release)/$(deb))
+
+release: build/tarball/mythtv-status-${version}.tar.gz etch-i386 sid-i386
+
+all: $(tarball) $(DEBS)
+
+$(tarball):
+       mkdir -p $(@D)
+       git-archive --format=tar $(version) | gzip > $(tarball)
+
+etch-i386:
+       ssh build-etch-i386 "cd `pwd`; $(build)"
+       @mkdir -p build/etch
+       @mv ../$(deb) build/etch
+
+sid-i386:
+       ssh build-sid-i386 "cd `pwd`; $(build)"
+       @mkdir -p build/sid
+       @mv ../$(deb) build/sid
+
+.PHONY: release etch-i386 sid-i386