[xml/sgml-commit] r1528 - /packages/docbook5-xml/trunk/debian/rules

dleidert-guest at users.alioth.debian.org dleidert-guest at users.alioth.debian.org
Mon Aug 17 13:21:01 UTC 2009


Author: dleidert-guest
Date: Mon Aug 17 13:21:00 2009
New Revision: 1528

URL: http://svn.debian.org/wsvn/debian-xml-sgml/?sc=1&rev=1528
Log:
* debian/rules: Added.


Added:
    packages/docbook5-xml/trunk/debian/rules   (with props)

Added: packages/docbook5-xml/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook5-xml/trunk/debian/rules?rev=1528&op=file
==============================================================================
--- packages/docbook5-xml/trunk/debian/rules (added)
+++ packages/docbook5-xml/trunk/debian/rules Mon Aug 17 13:21:00 2009
@@ -1,0 +1,62 @@
+#!/usr/bin/make -f
+# rules file for docbook5-xml
+
+PACKAGE := docbook5-xml
+
+build:
+	dh_testdir
+
+clean:
+	dh_testdir
+	dh_testroot
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+binary-arch: install
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog.upstream
+	dh_install
+	dh_installdocs -X.xml
+	dh_installexamples
+	dh_installxmlcatalogs
+	dh_bugfiles
+	dh_link
+	find $(CURDIR)/debian/$(PACKAGE) -type l -follow >/dev/null # exits 1 on broken links
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+
+version=$(shell dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*/\1/p')
+
+get-orig-source:
+	set -ex ; \
+	TMPDIR=$(PACKAGE)-${version}.orig ; \
+	mkdir -p "$$TMPDIR" ; \
+	touch "$$TMPDIR"/ChangeLog.upstream ; \
+	for db in 5.0 ; do \
+		dbxzip=docbook-$${db}.zip ; \
+		mkdir -p "$$TMPDIR"/docbook-$${db} ; \
+		wget -P "$$TMPDIR" http://www.docbook.org/xml/$${db}/"$$dbxzip" ; \
+		unzip -d "$$TMPDIR" "$$TMPDIR"/"$$dbxzip" ; \
+		rm -f "$$TMPDIR"/"$$dbxzip" ; \
+		[ -f "$$TMPDIR"/docbook-$${db}/ChangeLog ] && \
+		    cat "$$TMPDIR"/docbook-$${db}/ChangeLog >> "$$TMPDIR"/ChangeLog.upstream ; \
+        done ; \
+        find "$$TMPDIR" -type f ! -perm 644 -exec chmod 644 "{}" ";" ; \
+        GZIP=-9 tar -czf $(CURDIR)/$(PACKAGE)_${version}.orig.tar.gz "$$TMPDIR" ; \
+        rm -rf "$$TMPDIR"
+
+
+.PHONY: binary binary-arch binary-indep build clean get-orig-source

Propchange: packages/docbook5-xml/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *




More information about the debian-xml-sgml-commit mailing list