summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2005-10-18 14:55:07 +0000
committerFrans Pop <elendil@planet.nl>2005-10-18 14:55:07 +0000
commit2ee05973cc1b732db8f6e549b19fd55001e3bb0c (patch)
treef779953abdbd98d4c7491c8b597c92d8cd34227f
parentffaefdedd98832d9d60843624f13a66d9e1a056d (diff)
downloadinstallation-guide-2ee05973cc1b732db8f6e549b19fd55001e3bb0c.zip
Add debian/rules
-rwxr-xr-xdebian/rules63
1 files changed, 63 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..1ffecfd1f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+
+ARCHS=alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc
+VERSION=$(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
+DATE=$(shell echo $(VERSION) | cut -d '.' -f 1)
+SUITE=$(shell LC_ALL=C dpkg-parsechangelog | grep ^Distribution: | cut -d ' ' -f 2)
+ifeq (${SUITE},unstable)
+SUITE=etch
+endif
+
+MANTMP=$(shell pwd)/debian/manual
+
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean build-stamp
+ rm -rf $(MANTMP)
+
+build: build-stamp
+build-stamp:
+ rm -f $@
+ -rm -rf $(MANTMP)
+ set -e && cd build && \
+ for arch in $(ARCHS) ; do \
+ official_build=1 manual_release=$(SUITE) \
+ architectures="$$arch" noarchdir=1 \
+ destination=$(MANTMP)/$$arch \
+ ./build.sh ; \
+ done
+ touch $@
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+binary-arch:
+
+binary-indep: install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ for arch in $(ARCHS) ; do \
+ dh_installdocs -p debian-installer-manual-$$arch $(MANTMP)/$$arch/* ; \
+ done
+ dh_compress
+ dh_fixperms
+ dh_gencontrol -- -Vkernel:Package='$(KERNELPACKAGE)'
+ dh_builddeb
+
+ # Create a tarball for each arch for use in debian-cd
+ # Note: these should be uploaded manually
+ #set -e && cd $(MANTMP) && \
+ # for arch in $(ARCHS) ; do \
+ # tarname=di-manual-$${arch}_$(VERSION).tar.gz ; \
+ # cd $$arch ; \
+ # tar czf ../../../../$$tarname . ; \
+ # cd .. ; \
+ # done
+
+binary: binary-indep binary-arch
+.PHONY: build build-images clean binary-indep binary-arch binary install