[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dh_installtex bug????



Hi all!

While preparing Debian packages for context (sic, not texlive based) I
found a strange thing in dh_installtex:

dh_installtex extracts the various formats in the format .cnf file
installed into /etc/temxf/fmt.d/ and creates calls for the generation of
the formats.

Now, I have one line
	cont-en ....
in 10context.cnf, but in the postinst script the format is only called
"cont", so I guess this function is just messed up:
sub extract_format {
        my ($line) = @_;
        if ($line =~ m/^[^\w#]*(\w+)*/) {
                return $1;
        }
}

I know that this is my bug, as usual, but I want to ask in case there
were some changes I didn't get: SO I propose to make this:
sub extract_format {
        my ($line) = @_;
        if ($line =~ m/^[^\s#]*(\w+)*/) {
                return $1;
        }
}

Comments?

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>                    Università di Siena
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
MUNDERFIELD (n.) A meadow selected, whilst driving past, as being
ideal for a picnic which, from a sitting position, turns out to be
full of stubble, dust and cowpats, and almost impossible to enjoy
yourself in.
			--- Douglas Adams, The Meaning of Liff



Reply to: