]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_scrollkeeper
document load_load, write_log
[debhelper.git] / dh_scrollkeeper
index 234653226d56fe619f43169d441e45be0e67501a..d2e2145e89904e712da24e994c997792118494a2 100755 (executable)
@@ -20,10 +20,9 @@ registering OMF files that it finds in package build trees with
 ScrollKeeper.
 
 This command automatically adds maintainer script snippets for registering
 ScrollKeeper.
 
 This command automatically adds maintainer script snippets for registering
-and unregistering files with ScrollKeeper (unless B<-n> is used). A
-dependency on scrollkeeper will be added to C<${misc:Depends}>, so be sure
-your package uses that variable in F<debian/control>. See
-L<dh_installdeb(1)> for an explantion of Debhelper maintainer script
+and unregistering files with ScrollKeeper (unless B<-n> is used). These
+snippets are inserted into the maintainer scripts by dh_installdeb. See
+L<dh_installdeb(1)> for an explanation of Debhelper maintainer script
 snippets.
 
 It will also change any DTD declarations in the OMF and DocBook files
 snippets.
 
 It will also change any DTD declarations in the OMF and DocBook files
@@ -42,7 +41,7 @@ Do not modify F<postinst>/F<postrm> scripts.
 
 =head1 NOTES
 
 
 =head1 NOTES
 
-Note that this command is not idempotent. "dh_clean -k" should be
+Note that this command is not idempotent. L<dh_prep(1)> should be
 called between invocations of this command. Otherwise, it may cause
 multiple instances of the same text to be added to maintainer scripts.
 
 called between invocations of this command. Otherwise, it may cause
 multiple instances of the same text to be added to maintainer scripts.
 
@@ -66,31 +65,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                # Get a list of the OMF files
                my @omf_files = `find $tmp/usr/share/omf -type f -printf '%p\n'`;
                if (@omf_files) {
                # Get a list of the OMF files
                my @omf_files = `find $tmp/usr/share/omf -type f -printf '%p\n'`;
                if (@omf_files) {
-                       # Change any remote DTDs into local DTDs. We only
-                       # look at the first 10 lines to avoid changing any
-                       # of the content. First, the OMF files
-                       foreach my $file (@omf_files) {
-                               chomp $file;
-                               doit("perl", "-i", "-pe", 's,http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd,/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd, if $. < 10', $file);
-                       }
-                       # I could be cunning and parse the OMF for the DocBook
-                       # files. That is far too much effort. Find to the
-                       # rescue! Look for .xml files in the list of
-                       # directories we think they might be in.
-                       foreach my $xmlpath (@xml_paths) {
-                               foreach my $file (`find $tmp/$xmlpath -type f -name \*.xml -printf '%p\n'`) {
-                                       chomp $file;
-                                       doit("perl", "-i", "-pe", 's,http://www.oasis-open.org/docbook/xml/([^/]+)/docbookx.dtd,/usr/share/sgml/docbook/dtd/xml/\\1/docbookx.dtd, if $. < 10', $file);
-                               }
-                       }
-               
                        if (! $dh{NOSCRIPTS}) {
                                autoscript($package,"postinst","postinst-scrollkeeper");
                                autoscript($package,"postrm","postrm-scrollkeeper");
                        }
                        if (! $dh{NOSCRIPTS}) {
                                autoscript($package,"postinst","postinst-scrollkeeper");
                                autoscript($package,"postrm","postrm-scrollkeeper");
                        }
-                       # The scripts use scrollkeeper-update with the -q
-                       # option, so we require 0.3.8+.
-                       addsubstvar($package, "misc:Depends", "scrollkeeper", ">= 0.3.8");
                }
        }
 }
                }
        }
 }