From 8d52268afb73c983954cedd20c1e59f1d075036a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 25 Apr 2011 19:26:48 -0400 Subject: rename to dh_ucf does not actually install stuff --- dh_installucf | 92 ----------------------------------------------------------- dh_ucf | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 92 deletions(-) delete mode 100755 dh_installucf create mode 100755 dh_ucf diff --git a/dh_installucf b/dh_installucf deleted file mode 100755 index caba6e87..00000000 --- a/dh_installucf +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/perl -w - -=head1 NAME - -dh_installucf - register configuration files with ucf - -=cut - -use strict; -use Debian::Debhelper::Dh_Lib; - -=head1 SYNOPSIS - -B [S>] [B<-n>] [S ...>] - -=head1 DESCRIPTION - -B is a debhelper program that is responsible for generating the -F and F commands that register files with ucf(1) and ucfr(1). - -=head1 FILES - -=over 4 - -=item debian/I.ucf - -List pairs of source and destination files to register with ucf. Each pair -should be put on its own line, with the source and destination separated by -whitespace. Both source and destination must be absolute paths. - -A dependency on ucf will be generated in B<${misc:Depends}>. - -=back - -=head1 OPTIONS - -=over 4 - -=item B<-n>, B<--noscripts> - -Do not modify F/F scripts. Turns this command into a no-op. - -=back - -=head1 NOTES - -Note that this command is not idempotent. L 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(); - -foreach my $package (@{$dh{DOPACKAGES}}) { - my $tmp=tmpdir($package); - my $file=pkgfile($package,"ucf"); - - my @ucf; - if ($file) { - @ucf=filedoublearray($file); - } - - if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { - push @ucf, [@ARGV]; - } - - if (! $dh{NOSCRIPTS}) { - if (@ucf) { - addsubstvar($package, "misc:Depends", "ucf"); - } - foreach my $set (@ucf) { - my $src = $set->[0]; - my $dest = $set->[1]; - autoscript($package,"postinst","postinst-ucf","s:#UCFSRC#:$src:;s:#UCFDEST#:$dest:;s/#PACKAGE#/$package/",); - autoscript($package,"postrm","postrm-ucf","s:#UCFDEST#:$dest:;s/#PACKAGE#/$package/"); - } - } -} - -=head1 SEE ALSO - -L - -This program is a part of debhelper. - -=head1 AUTHOR - -Joey Hess -Jeroen Schot - -=cut diff --git a/dh_ucf b/dh_ucf new file mode 100755 index 00000000..8f85d78c --- /dev/null +++ b/dh_ucf @@ -0,0 +1,92 @@ +#!/usr/bin/perl -w + +=head1 NAME + +dh_ucf - register configuration files with ucf + +=cut + +use strict; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [S>] [B<-n>] [S ...>] + +=head1 DESCRIPTION + +B is a debhelper program that is responsible for generating the +F and F commands that register files with ucf(1) and ucfr(1). + +=head1 FILES + +=over 4 + +=item debian/I.ucf + +List pairs of source and destination files to register with ucf. Each pair +should be put on its own line, with the source and destination separated by +whitespace. Both source and destination must be absolute paths. + +A dependency on ucf will be generated in B<${misc:Depends}>. + +=back + +=head1 OPTIONS + +=over 4 + +=item B<-n>, B<--noscripts> + +Do not modify F/F scripts. Turns this command into a no-op. + +=back + +=head1 NOTES + +Note that this command is not idempotent. L 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(); + +foreach my $package (@{$dh{DOPACKAGES}}) { + my $tmp=tmpdir($package); + my $file=pkgfile($package,"ucf"); + + my @ucf; + if ($file) { + @ucf=filedoublearray($file); + } + + if (($package eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) { + push @ucf, [@ARGV]; + } + + if (! $dh{NOSCRIPTS}) { + if (@ucf) { + addsubstvar($package, "misc:Depends", "ucf"); + } + foreach my $set (@ucf) { + my $src = $set->[0]; + my $dest = $set->[1]; + autoscript($package,"postinst","postinst-ucf","s:#UCFSRC#:$src:;s:#UCFDEST#:$dest:;s/#PACKAGE#/$package/",); + autoscript($package,"postrm","postrm-ucf","s:#UCFDEST#:$dest:;s/#PACKAGE#/$package/"); + } + } +} + +=head1 SEE ALSO + +L + +This program is a part of debhelper. + +=head1 AUTHOR + +Joey Hess +Jeroen Schot + +=cut -- cgit v1.2.3