#!/usr/bin/perl -- # # Clean up the mess that bogus install-info may have done : # # - gather all sections with the same heading into a single one. # Tries to be smart about cases and trailing colon/spaces. # # Other clean ups : # # - remove empty sections, # - squeeze blank lines (in entries part only). # # Order of sections is preserved (the first encountered section # counts). # # Order of entries within a section is preserved. # # BUGS: # # Probably many : I just recently learned Perl for this program # using the man pages. Hopefully this is a short enough program to # debug. # don't put that in for production. # use strict; my $dpkglibdir = "."; # This line modified by Makefile push(@INC,$dpkglibdir); require 'dpkg-gettext.pl'; textdomain("dpkg"); ($0) = $0 =~ m:.*/(.+):; my $version = '1.1.6'; # This line modified by Makefile sub version { printf _g("Debian %s version %s.\n"), $0, $version; printf _g(" Copyright (C) 1996 Kim-Minh Kaplan."); printf _g(" This is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is NO warranty. "); } sub usage { printf _g( "Usage: %s [