summaryrefslogtreecommitdiff
path: root/dh_installinfo
diff options
context:
space:
mode:
authorjoey <joey>1999-09-06 20:23:23 +0000
committerjoey <joey>1999-09-06 20:23:23 +0000
commit94373db404c60078e2275ba43bc84b348f27d1a5 (patch)
tree6c0be6653bb879df4f977a2532ae1a3632687a38 /dh_installinfo
parent37c69d4e7124fb03edf46bea4eb38f6721f2aa2a (diff)
r267: * dh_installinfo: use FHS info dir. I wonder how I missed that..
Diffstat (limited to 'dh_installinfo')
-rwxr-xr-xdh_installinfo22
1 files changed, 11 insertions, 11 deletions
diff --git a/dh_installinfo b/dh_installinfo
index b6ae40f..55deb36 100755
--- a/dh_installinfo
+++ b/dh_installinfo
@@ -1,9 +1,9 @@
#!/usr/bin/perl -w
#
-# Reads debian/info, installs all files listed there into /usr/info
+# Reads debian/info, installs all files listed there into /usr/share/info
# and puts appropriate commands into the postinst.
-BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
+BEGIN { push @INC, "debian", "/usr/share/debhelper" }
use Dh_Lib;
init();
@@ -22,12 +22,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
}
if (@info) {
- if ( ! -d "$TMP/usr/info") {
- doit("install","-d","$TMP/usr/info");
+ if ( ! -d "$TMP/usr/share/info") {
+ doit("install","-d","$TMP/usr/share/info");
}
- doit("cp",@info,"$TMP/usr/info");
- doit("chmod","-R", "go=rX","$TMP/usr/info/");
- doit("chmod","-R", "u+rw","$TMP/usr/info/");
+ doit("cp",@info,"$TMP/usr/share/info");
+ doit("chmod","-R", "go=rX","$TMP/usr/share/info/");
+ doit("chmod","-R", "u+rw","$TMP/usr/share/info/");
}
foreach $file (@info) {
@@ -35,7 +35,7 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
# a tree of info files.
if ($file=~/\.info$/ && ! $dh{NOSCRIPTS}) {
# Figure out what section this file goes in.
- my $section;
+ my $section='';
open (IN, "<$file") || die "$file: $!";
while (<IN>) {
if (/INFO-DIR-SECTION\s+(.*)/) {
@@ -45,15 +45,15 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
}
close IN;
- my $fn="/usr/info/".Dh_Lib::basename($file);
+ my $fn="/usr/share/info/".Dh_Lib::basename($file);
if ($section ne '') {
autoscript($PACKAGE,"postinst","postinst-info",
- "s/#SECTION#/$section/;s:#FILE#:$fn:");
+ "s/#SECTION#/$section/g;s:#FILE#:$fn:");
}
else {
autoscript($PACKAGE,"postinst","postinst-info-nosection",
- "s/#FILE#/$fn/");
+ "s:#FILE#:$fn:");
}
autoscript($PACKAGE,"prerm","prerm-info", "s:#FILE#:$fn:");
}