diff -Nru wyrd-1.4.6/debian/changelog wyrd-1.4.6/debian/changelog --- wyrd-1.4.6/debian/changelog 2015-11-27 14:01:54.000000000 +0000 +++ wyrd-1.4.6/debian/changelog 2016-01-18 12:08:01.000000000 +0000 @@ -1,3 +1,10 @@ +wyrd (1.4.6-4) unstable; urgency=medium + + * Get date from changelog for version.ml to make package autobuildable. + * New patch to fix manpages. + + -- Rhonda D'Vine Mon, 18 Jan 2016 01:09:37 +0100 + wyrd (1.4.6-3) unstable; urgency=medium [ Mehdi Dogguy ] diff -Nru wyrd-1.4.6/debian/patches/04_fix_manpages wyrd-1.4.6/debian/patches/04_fix_manpages --- wyrd-1.4.6/debian/patches/04_fix_manpages 1970-01-01 00:00:00.000000000 +0000 +++ wyrd-1.4.6/debian/patches/04_fix_manpages 2016-01-18 12:07:51.000000000 +0000 @@ -0,0 +1,30 @@ +Author: Rhonda D'Vine +Description: Fix manpages + +Index: wyrd-1.4.6/doc/wyrd.1 +=================================================================== +--- wyrd-1.4.6.orig/doc/wyrd.1 2013-02-03 04:40:51.000000000 +0100 ++++ wyrd-1.4.6/doc/wyrd.1 2016-01-18 13:06:45.797519100 +0100 +@@ -13,8 +13,7 @@ + .TH "WYRD" "1" "02 February 2013" "a console calendar application " "a console calendar application " + .SH NAME + +-wyrd +-is a text\-based front\-end to \fIremind\fP(1), ++wyrd \- a text\-based front\-end to \fIremind\fP(1), + a sophisticated + calendar and alarm program. + .PP +Index: wyrd-1.4.6/doc/wyrdrc.5 +=================================================================== +--- wyrd-1.4.6.orig/doc/wyrdrc.5 2013-02-03 04:40:51.000000000 +0100 ++++ wyrd-1.4.6/doc/wyrdrc.5 2016-01-18 13:06:58.369581442 +0100 +@@ -13,7 +13,7 @@ + .TH "WYRDRC" "5" "02 February 2013" "configuration file for the Wyrd calendar application " "configuration file for the Wyrd calendar application " + .SH NAME + +-wyrdrc is the configuration textfile for the \fIwyrd\fP(1) ++wyrdrc \- the configuration textfile for the \fIwyrd\fP(1) + console calendar application. + .PP + .SH INTRODUCTION diff -Nru wyrd-1.4.6/debian/patches/series wyrd-1.4.6/debian/patches/series --- wyrd-1.4.6/debian/patches/series 2015-11-27 13:32:31.000000000 +0000 +++ wyrd-1.4.6/debian/patches/series 2016-01-18 12:04:55.000000000 +0000 @@ -1,3 +1,4 @@ 01_editor 02_ocaml_curses 03_no_curses_subdir +04_fix_manpages diff -Nru wyrd-1.4.6/debian/rules wyrd-1.4.6/debian/rules --- wyrd-1.4.6/debian/rules 2015-11-27 12:09:08.000000000 +0000 +++ wyrd-1.4.6/debian/rules 2016-01-18 12:38:46.000000000 +0000 @@ -1,11 +1,19 @@ #!/usr/bin/make -f +VERSION := $(shell grep ^VERSION= Makefile.in | cut -d= -f2) +BUILD_DATE := $(shell dpkg-parsechangelog | sed -n -e 's/^Date: //p') + %: dh $@ --with autotools_dev,ocaml override_dh_auto_configure: dh_auto_configure -- --enable-utf8 +override_dh_auto_build: + echo "let version = \""$(VERSION)"\"" > version.ml + echo "let date = \"$(BUILD_DATE)\"" >> version.ml + dh_auto_build + override_dh_auto_install: dh_auto_install #rm $(CURDIR)/debian/wyrd/usr/share/doc/wyrd/README