~ubuntu-branches/ubuntu/trusty/libdogleg/trusty

« back to all changes in this revision

Viewing changes to debian/patches/0001-manpage-no-longer-has-date-for-multi-arch.patch

  • Committer: Package Import Robot
  • Author(s): Dima Kogan
  • Date: 2014-01-12 23:18:46 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140112231846-y135oovkemjkghrp
Tags: 0.08-2
* libdogleg is now Priority: optional
* libdogleg is now Multi-arch:same

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: Dima Kogan <dima@secretsauce.net>
 
2
Date: Sun, 12 Jan 2014 23:26:09 -0800
 
3
Subject: manpage no longer has date (for multi-arch)
 
4
 
 
5
---
 
6
 Makefile | 6 ++++--
 
7
 1 file changed, 4 insertions(+), 2 deletions(-)
 
8
 
 
9
diff --git a/Makefile b/Makefile
 
10
index 3696ca1..41cd263 100644
 
11
--- a/Makefile
 
12
+++ b/Makefile
 
13
@@ -60,9 +60,11 @@ $(TARGET_SO_SONAME) $(TARGET_SO_BARE): $(TARGET_SO_FULL)
 
14
 %-pic.o: %.c
 
15
        $(CC) $(CPPFLAGS) -fPIC $(CFLAGS) -c -o $@ $<
 
16
 
 
17
+# I want multi-arch:same, so I remove the date and the "automatically-generated"
 
18
+# line. This makes sure that multiple builds of the manpage on different arches
 
19
+# will produce a bit-identical the same result
 
20
 $(MAN_TARGET): README.pod
 
21
-       pod2man --center="libdogleg: Powell's dogleg method" --name=LIBDOGLEG --release="libdogleg $(VERSION)" --section=$(MAN_SECTION) $^ $@
 
22
-
 
23
+       pod2man --date=" " --center="libdogleg: Powell's dogleg method" --name=LIBDOGLEG --release="libdogleg $(VERSION)" --section=$(MAN_SECTION) $^ | grep -v 'Automatically generated.*Pod::Man' > $@
 
24
 
 
25
 sample: sample.o libdogleg.a
 
26
        $(CC) $^ $(LDLIBS) -o $@