dpkg-scansources to handle trailing blanks.
+Sun Dec 5 18:09:36 CET 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * Add manpages from Josip Rodin <joy@cibalia.gkvk.hr> for
+ cleanup-info
+ * New dpkg-scansources from Roderick to allow trailing blanks on lines
+ * Correct generation of manual-version
+
Sat Dec 4 04:22:49 CET 1999 Wichert Akkerman <wakkerma@debian.org>
* Update the polish translation
dpkg (1.6.2) unstable; urgency=low
- * Fix default lispdir, Closes: #51525
+ * New dpkg-scansources, Closes: #51888
+ * Fix default for elispdir, Closes: #51919,51525
+ * New manpages for cleanup-info and dpkg-divert, Closes: #51539, 46657
+ * Buildsystem updates, Closes: #51525, 51855, 51914
-- Wichert Akkerman <wakkerma@debian.org> UNRELEASED
install -p -m 644 -o root -g root debian/changelog \
$(TMP_DPKG)/usr/share/doc/dpkg/changelog.Debian
+ rm -f $(TMP_DPKG)/usr/share/doc/dpkg/copyright
gzip -9 $(TMP_DPKG)/usr/share/doc/dpkg/*
install -p -m 644 -o root -g root debian/copyright \
$(TMP_DPKG)/usr/share/doc/dpkg/
install: install-doc
manuals-version: $(top_srcdir)/version-nr
- v=`sed -ne 1s/.*(\(.*\)).*/\1/ $(srcdir)/ChangeLog` ; \
- echo "<!entity manuals-version \"$$v)\">" > $@
+ set -e ; v=`sed -ne '1s/.*(\(.*\)).*/\1/' $(srcdir)/ChangeLog` ; \
+ echo "<!entity manuals-version \"$$v\">" > $@
echo "<!entity dpkg-version \"$(VERSION)\">" >> $@
internals.html: internals.sgml manuals-version
MAN1PAGES = dpkg-name.1 dpkg-source.1 822-date.1 dpkg-architecture.1
MAN8PAGES = update-rc.d.8 update-alternatives.8 install-info.8 \
- dpkg-scanpackages.8 dpkg-scansources.8
+ cleanup-info.8 dpkg-scanpackages.8 dpkg-scansources.8
CHANGELOG_PARSERS = cl-debian
--- /dev/null
+.TH CLEANUP-INFO 8 "November 1999" "Debian Project" "dpkg utilities"
+.SH NAME
+cleanup-info \- clean up the mess that bogus install-info may have done
+.SH SYNOPSIS
+.B cleanup-info
+[--help] [--unsafe] [--version] [--] [\fI<dirname>\fP]
+.SH DESCRIPTION
+.B cleanup-info
+is a Perl script that tries to clean up the mess that bogus install-info may
+have done. It gathers all sections with the same heading into a single one.
+It tries to be smart about cases and trailing colon/spaces.
+.br
+Other clean-ups include removing of empty sections, and squeezing the blank
+lines (in entries part only).
+.sp
+Order of sections is preserved (the first encountered section counts).
+Order of entries within a section is preserved.
+.sp
+Please be \fBextremely careful\fP when using this utility - it might
+not be 100% safe. cleanup-info tries to be careful with your info dir
+file, but only until it writes it. You should back the file up prior
+to using this.
+.SH OPTIONS
+.TP
+.I --help
+Output the help screen and exit successfully.
+.TP
+.I --unsafe
+Set some additional possibly useful options.
+.br
+.B "Warning: the `--unsafe' option may garble an otherwise correct file!"
+.TP
+.I --version
+Output version and exit successfully.
+.SH FILES
+.TP
+.I "/usr/info/dir or <dirname>/dir"
+The info directory file. The lock file is named the same, with ".lock" suffix.
+.SH BUGS
+Probably many.
+.SH SEE ALSO
+.BR install-info (8),
+.BR info (1).
+.SH AUTHOR
+Copyright (C) 1996 Kim-Minh Kaplan.
+.sp
+This is free software; see the GNU General Public Licence
+version 2 or later for copying conditions. There is NO warranty.
my ($size, $md5, $contents) = read_dsc $file or return;
+ # Allow blank lines at the end of a file, because the other programs
+ # do.
+ $contents =~ s/\n\n+\z/\n/;
+
if ($contents =~ /^\n/ || $contents =~ /\n\n/) {
xwarn_noerror "$file invalid (contains blank line)\n";
return;