????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.191.86.218 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/bin/ |
Upload File : |
#!/usr/bin/perl -w =head1 NAME dh_installcatalogs - install and register SGML Catalogs =cut use strict; use Debian::Debhelper::Dh_Lib; my $sgmlbasever = "1.26+nmu2"; =head1 SYNOPSIS B<dh_installcatalogs> [S<I<debhelper options>>] [B<-n>] =head1 DESCRIPTION B<dh_installcatalogs> is a debhelper program that installs and registers SGML catalogs. It complies with the Debian XML/SGML policy. Catalogs will be registered in a supercatalog, in F</etc/sgml/I<package>.cat>. This command automatically adds maintainer script snippets for registering and unregistering the catalogs and supercatalogs (unless B<-n> is used). These snippets are inserted into the maintainer scripts by B<dh_installdeb>; see L<dh_installdeb(1)> for an explanation of Debhelper maintainer script snippets. A dependency on B<sgml-base> will be added to B<${misc:Depends}>, so be sure your package uses that variable in F<debian/control>. =head1 FILES =over 4 =item debian/I<package>.sgmlcatalogs Lists the catalogs to be installed per package. Each line in that file should be of the form C<I<source> I<dest>>, where I<source> indicates where the catalog resides in the source tree, and I<dest> indicates the destination location for the catalog under the package build area. I<dest> should start with F</usr/share/sgml/>. =back =head1 OPTIONS =over 4 =item B<-n>, B<--noscripts> Do not modify F<postinst>/F<postrm>/F<prerm> scripts. =back =head1 NOTES 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. =cut init(); # PROMISE: DH NOOP WITHOUT sgmlcatalogs foreach my $package (@{$dh{DOPACKAGES}}) { my $tmpdir = tmpdir($package); my $sgmlcatlistfile = pkgfile($package, "sgmlcatalogs"); my @sgmlinstalled; # catalogs we've installed if ($#ARGV >= 0) { error("extra command-line arguments"); } if ($sgmlcatlistfile) { foreach my $line (filedoublearray($sgmlcatlistfile)) { my $source = $line->[0]; my $dest = $line->[1]; my $fulldest = "$tmpdir/$dest"; $fulldest =~ s|//|/|g; # beautification if (! -d dirname($fulldest)) { doit("install","-d","-m755",$tmpdir."/".dirname($dest)); } doit("install","-p","-m644",$source,$fulldest); push(@sgmlinstalled,$dest); } } if (@sgmlinstalled) { addsubstvar($package, "misc:Depends", "sgml-base", ">= $sgmlbasever"); if (! -d "$tmpdir/etc/sgml") { doit("install","-d","-m755","$tmpdir/etc/sgml"); } my $centralcat = "/etc/sgml/$package.cat"; open(CENTRALCAT, ">", "$tmpdir$centralcat") || error("failed to write to $tmpdir$centralcat"); foreach my $sgmldest (@sgmlinstalled) { print CENTRALCAT "CATALOG " . $sgmldest . "\n"; } close CENTRALCAT; if (! $dh{NOSCRIPTS}) { autoscript($package, "preinst", "preinst-sgmlcatalog", "s%#CENTRALCAT#%$centralcat%g;"); autoscript($package, "postrm", "postrm-sgmlcatalog", "s%#CENTRALCAT#%$centralcat%g;"); } } else { # remove the dependency addsubstvar($package, "misc:Depends", "sgml-base", ">= $sgmlbasever", 1); } } =head1 SEE ALSO L<debhelper(7)> F</usr/share/doc/sgml-base-doc/> =head1 AUTHOR Adam Di Carlo <aph@debian.org> =cut