Commit 51c3907f authored by Ari Pollak's avatar Ari Pollak Committed by Jeremy Bicha

Import Debian changes 2+0.7-3

gimp-help (2+0.7-3) unstable; urgency=low

  * Oops, add a section to the *.doc-base files, and actually install them
  * Fix the order of the directories in the *.links files
parent 0603a9eb
gimp-help (2+0.7-3) unstable; urgency=low
* Oops, add a section to the *.doc-base files, and actually install them
* Fix the order of the directories in the *.links files
-- Ari Pollak <ari@debian.org> Wed, 9 Mar 2005 09:18:59 -0500
gimp-help (2+0.7-2) unstable; urgency=low
* Actually put the appropriate files into gimp-help-cs
......
......@@ -3,6 +3,7 @@ Title: GIMP User's Manual (Czech)
Author: Various
Abstract: This manual contains documentation for using the
GNU Image Manipulation Program (The GIMP) in the Czech language.
Section: Apps/Graphics
Format: HTML
Index: /usr/share/doc/gimp-help-common/html/cs/index.html
......
usr/share/doc/gimp-help-cs usr/share/doc/gimp-help-common
usr/share/doc/gimp-help-common usr/share/doc/gimp-help-cs
......@@ -3,6 +3,7 @@ Title: GIMP User's Manual (German)
Author: Various
Abstract: This manual contains documentation for using the
GNU Image Manipulation Program (The GIMP) in the German language.
Section: Apps/Graphics
Format: HTML
Index: /usr/share/doc/gimp-help-common/html/de/index.html
......
usr/share/doc/gimp-help-de usr/share/doc/gimp-help-common
usr/share/doc/gimp-help-common usr/share/doc/gimp-help-de
......@@ -3,6 +3,7 @@ Title: GIMP User's Manual (English)
Author: Various
Abstract: This manual contains documentation for using the
GNU Image Manipulation Program (The GIMP) in the English language.
Section: Apps/Graphics
Format: HTML
Index: /usr/share/doc/gimp-help-common/html/en/index.html
......
usr/share/doc/gimp-help-en usr/share/doc/gimp-help-common
usr/share/doc/gimp-help-common usr/share/doc/gimp-help-en
......@@ -3,6 +3,7 @@ Title: GIMP User's Manual (French)
Author: Various
Abstract: This manual contains documentation for using the
GNU Image Manipulation Program (The GIMP) in the French language.
Section: Apps/Graphics
Format: HTML
Index: /usr/share/doc/gimp-help-common/html/fr/index.html
......
usr/share/doc/gimp-help-fr usr/share/doc/gimp-help-common
usr/share/doc/gimp-help-common usr/share/doc/gimp-help-fr
......@@ -3,6 +3,7 @@ Title: GIMP User's Manual (Swedish)
Author: Various
Abstract: This manual contains documentation for using the
GNU Image Manipulation Program (The GIMP) in the Swedish language.
Section: Apps/Graphics
Format: HTML
Index: /usr/share/doc/gimp-help-common/html/sv/index.html
......
usr/share/doc/gimp-help-sv usr/share/doc/gimp-help-common
usr/share/doc/gimp-help-common usr/share/doc/gimp-help-sv
......@@ -3,6 +3,7 @@ Title: GIMP User's Manual (Chinese Simplified)
Author: Various
Abstract: This manual contains documentation for using the
GNU Image Manipulation Program (The GIMP) in the Chinese Simplified language.
Section: Apps/Graphics
Format: HTML
Index: /usr/share/doc/gimp-help-common/html/zh-cn/index.html
......
usr/share/doc/gimp-help-zh-cn usr/share/doc/gimp-help-common
usr/share/doc/gimp-help-common usr/share/doc/gimp-help-zh-cn
#!/usr/bin/perl -w
=head1 NAME
installdocbase - modified version of dh_installdocs to only install the
*.doc-base files in the debian/ directory.
=cut
use strict;
use Debian::Debhelper::Dh_Lib;
=head1 OPTIONS
=over 4
=item B<-A>, B<--all>
Install all files specified by command line parameters in ALL packages
acted on.
=item B<-n>, B<--noscripts>
Do not modify postinst/prerm scripts.
=item B<-Xitem>, B<--exclude=item>
Exclude files that contain "item" anywhere in their filename from
being installed.
=item I<file ...>
Install these files as documentation into the first package acted on. (Or
in all packages if B<-A> is specified).
=back
=cut
init();
foreach my $package (@{$dh{DOPACKAGES}}) {
next if is_udeb($package);
my $tmp=tmpdir($package);
# Handle doc-base files. There are two filename formats, the usual
# plus an extended format (debian/package.*).
my %doc_ids;
opendir(DEB,"debian/") || error("can't read debian directory: $!");
# If this is the main package, we need to handle unprefixed filenames.
# For all packages, we must support both the usual filename format plus
# that format with a period an something appended.
my $regexp="\Q$package\E\.";
if ($package eq $dh{MAINPACKAGE}) {
$regexp="(|$regexp)";
}
foreach my $fn (grep {/^${regexp}doc-base(\..*)?$/} readdir(DEB)) {
# .EX are example files, generated by eg, dh-make
next if $fn=~/\.EX$/;
# Parse the file to get the doc id.
open (IN, "debian/$fn") || die "Cannot read debian/$fn.";
while (<IN>) {
if (/^Document:\s+(.*)(\s+)?/) {
$doc_ids{$fn}=$1;
last;
}
}
close IN;
}
closedir(DEB);
if (%doc_ids) {
if (! -d "$tmp/usr/share/doc-base/") {
doit("install","-g",0,"-o",0,"-d","$tmp/usr/share/doc-base/");
}
}
foreach my $fn (keys %doc_ids) {
doit("install","-g",0,"-o",0,"-m644","-p","debian/$fn",
"$tmp/usr/share/doc-base/$doc_ids{$fn}");
if (! $dh{NOSCRIPTS}) {
autoscript($package,"postinst","postinst-doc-base",
"s/#DOC-ID#/$doc_ids{$fn}/",
);
autoscript($package,"prerm","prerm-doc-base",
"s/#DOC-ID#/$doc_ids{$fn}/",
);
}
}
}
=head1 SEE ALSO
L<debhelper(7)>
This program is a part of debhelper.
=head1 AUTHOR
Joey Hess <joeyh@debian.org>
=cut
......@@ -72,7 +72,7 @@ install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_installdirs -A usr/share/doc
# Add here commands to install the package into debian/tmp
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
......@@ -89,6 +89,7 @@ binary-indep: build install
dh_movefiles
dh_installchangelogs -pgimp-help-common ChangeLog
dh_installdocs -pgimp-help-common
chmod +x debian/installdocbase; debian/installdocbase
dh_installexamples
# dh_install
# dh_installmenu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment