r1384 - tzdata/trunk/debian
Author: aurel32
Date: 2006-04-10 09:53:58 +0000 (Mon, 10 Apr 2006)
New Revision: 1384
Modified:
tzdata/trunk/debian/changelog
tzdata/trunk/debian/control
tzdata/trunk/debian/rules
Log:
* Add a patching system.
Modified: tzdata/trunk/debian/changelog
===================================================================
--- tzdata/trunk/debian/changelog 2006-04-10 09:29:53 UTC (rev 1383)
+++ tzdata/trunk/debian/changelog 2006-04-10 09:53:58 UTC (rev 1384)
@@ -2,6 +2,7 @@
* Put a copy of the current timezone into /etc/localtime instead of a
symlink.
+ * Add a patching system.
-- Aurelien Jarno <aurel32@debian.org> Mon, 10 Apr 2006 09:13:04 +0200
Modified: tzdata/trunk/debian/control
===================================================================
--- tzdata/trunk/debian/control 2006-04-10 09:29:53 UTC (rev 1383)
+++ tzdata/trunk/debian/control 2006-04-10 09:53:58 UTC (rev 1384)
@@ -1,7 +1,7 @@
Source: tzdata
Section: libs
Priority: required
-Build-Depends: debhelper (>= 4.0.0)
+Build-Depends: debhelper (>= 4.0.0), quilt
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Uploaders: Ben Collins <bcollins@debian.org>, GOTO Masanori <gotom@debian.org>, Philip Blundell <pb@nexus.co.uk>, Jeff Bailey <jbailey@raspberryginger.com>, Daniel Jacobowitz <dan@debian.org>, Clint Adams <schizo@debian.org>, Denis Barbier <barbier@debian.org>, Aurelien Jarno <aurel32@debian.org>
Standards-Version: 3.6.2
Modified: tzdata/trunk/debian/rules
===================================================================
--- tzdata/trunk/debian/rules 2006-04-10 09:29:53 UTC (rev 1383)
+++ tzdata/trunk/debian/rules 2006-04-10 09:53:58 UTC (rev 1384)
@@ -25,10 +25,28 @@
build-stamp:
dh_testdir
+ # Unpack the sources
mkdir $(TZSOURCE)
for x in $$(ls tzdata*.tar.gz); do \
tar -xzvC $(TZSOURCE) -f $${x} ;\
done
+
+ # Apply patches
+ ln -sf $(CURDIR)/debian/patches $(TZSOURCE)
+ @cd $(TZSOURCE); \
+ if quilt next >/dev/null 2>&1; then \
+ echo -n "Applying patches..."; \
+ if quilt push -a -v > $(CURDIR)/patch-log 2>&1; then \
+ echo "successful."; \
+ else \
+ echo "failed! (check $(CURDIR)/patch-log for details)"; \
+ exit 1; \
+ fi; \
+ else \
+ echo "No patches to apply"; \
+ fi
+
+ # Build
for zone in $(TIMEZONES); do \
/usr/sbin/zic -d $(TZGEN) -L /dev/null -y $(TZSOURCE)/yearistype.sh $(TZSOURCE)/$${zone} ; \
/usr/sbin/zic -d $(TZGEN)/posix -L /dev/null -y $(TZSOURCE)/yearistype.sh $(TZSOURCE)/$${zone} ; \
@@ -42,6 +60,7 @@
dh_testroot
-rm -rf $(TZSOURCE) $(TZGEN)
rm -f build-stamp
+ rm -f patch-log
dh_clean
install: build
Reply to: