# Reads debian/info, installs all files listed there into /usr/info
# and puts appropriate commands into the postinst.
# Reads debian/info, installs all files listed there into /usr/info
# and puts appropriate commands into the postinst.
open (IN, "<$file") || die "$file: $!";
while (<IN>) {
if (/INFO-DIR-SECTION\s+(.*)/) {
open (IN, "<$file") || die "$file: $!";
while (<IN>) {
if (/INFO-DIR-SECTION\s+(.*)/) {
if ($section ne '') {
autoscript($PACKAGE,"postinst","postinst-info",
if ($section ne '') {
autoscript($PACKAGE,"postinst","postinst-info",
}
else {
autoscript($PACKAGE,"postinst","postinst-info-nosection",
}
else {
autoscript($PACKAGE,"postinst","postinst-info-nosection",
}
autoscript($PACKAGE,"prerm","prerm-info", "s:#FILE#:$fn:");
}
}
autoscript($PACKAGE,"prerm","prerm-info", "s:#FILE#:$fn:");
}