diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-08 17:06:01 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-08 17:06:01 +0000 |
commit | 78564a5a13ec3fde63fd4317df86af179d6a87dc (patch) | |
tree | 7e61806a3686611ee2cc65975c5e5ac8b3bcf533 /usr.sbin/pkg_add | |
parent | 03a3fb24a43b3ba804455a763bf821cdb67a4544 (diff) |
remove very old -ikr
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/pkg_info | 34 | ||||
-rw-r--r-- | usr.sbin/pkg_add/pkg_info.1 | 12 |
2 files changed, 11 insertions, 35 deletions
diff --git a/usr.sbin/pkg_add/pkg_info b/usr.sbin/pkg_add/pkg_info index a6be189d756..e20b23fc10d 100644 --- a/usr.sbin/pkg_add/pkg_info +++ b/usr.sbin/pkg_add/pkg_info @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_info,v 1.84 2010/01/05 12:20:47 espie Exp $ +# $OpenBSD: pkg_info,v 1.85 2010/01/08 17:06:00 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -254,8 +254,8 @@ sub find_by_path } } -our ($opt_c, $opt_C, $opt_D, $opt_d, $opt_f, $opt_I, $opt_i, $opt_k, $opt_K, - $opt_L, $opt_Q, $opt_q, $opt_R, $opt_r, $opt_s, $opt_v, $opt_h, +our ($opt_c, $opt_C, $opt_D, $opt_d, $opt_f, $opt_I, $opt_K, + $opt_L, $opt_Q, $opt_q, $opt_R, $opt_s, $opt_v, $opt_h, $opt_l, $opt_a, $opt_m, $opt_M, $opt_U, $opt_A, $opt_S, $opt_P, $opt_t); my $terse = 0; my $exit_code = 0; @@ -316,24 +316,6 @@ sub print_info printfile($handle->info.UNDISPLAY); print "\n"; } - if ($opt_i && -f $handle->info.INSTALL) { - just_in_time_header($pkg, $handle ,\$done); - print $opt_l, "Install script:\n" unless $opt_q; - printfile($handle->info.INSTALL); - print "\n"; - } - if ($opt_k && -f $handle->info.DEINSTALL) { - just_in_time_header($pkg, $handle ,\$done); - print $opt_l, "De-Install script:\n" unless $opt_q; - printfile($handle->info.DEINSTALL, \*STDOUT); - print "\n"; - } - if ($opt_r && -f $handle->info.REQUIRING) { - just_in_time_header($pkg, $handle ,\$done); - print $opt_l, "Require script:\n" unless $opt_q; - printfile($handle->info.REQUIRING, \*STDOUT); - print "\n"; - } my $plist; if ($opt_f || $opt_L || $opt_s || $opt_S || $opt_C) { require OpenBSD::PackingList; @@ -404,12 +386,12 @@ sub print_info } } -set_usage('pkg_info [-AacCDdfIiKkLMmPqRrSstUv] [-F opt] [-E filename] [-e pkg-name] [-l str] [-Q query] [pkg-name] [...]'); +set_usage('pkg_info [-AacCDdfIKLMmPqRSstUv] [-F opt] [-E filename] [-e pkg-name] [-l str] [-Q query] [pkg-name] [...]'); my %defines; my $locked; try { - getopts('cCDdfF:hIikKLmPQ:qRrsSUve:E:Ml:aAt', + getopts('cCDdfF:hIKLmPQ:qRsSUve:E:Ml:aAt', {'e' => sub { my $pat = shift; @@ -452,8 +434,8 @@ if ($opt_D) { $opt_M = 1; } -unless ($opt_c || $opt_M || $opt_U || $opt_d || $opt_f || $opt_I || $opt_i || - $opt_k || $opt_L || $opt_R || $opt_r || $opt_s || +unless ($opt_c || $opt_M || $opt_U || $opt_d || $opt_f || $opt_I || + $opt_L || $opt_R || $opt_s || $opt_S || $opt_P || $terse) { if (@ARGV == 0) { $opt_I = $opt_a = 1; @@ -479,7 +461,7 @@ if ($opt_Q) { } if ($opt_v) { - $opt_c = $opt_d = $opt_f = $opt_i = $opt_k = $opt_r = $opt_M = + $opt_c = $opt_d = $opt_f = $opt_M = $opt_U = $opt_R = $opt_s = $opt_S = 1; } diff --git a/usr.sbin/pkg_add/pkg_info.1 b/usr.sbin/pkg_add/pkg_info.1 index e65b296175f..983fdac2524 100644 --- a/usr.sbin/pkg_add/pkg_info.1 +++ b/usr.sbin/pkg_add/pkg_info.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pkg_info.1,v 1.34 2009/10/11 20:09:48 jmc Exp $ +.\" $OpenBSD: pkg_info.1,v 1.35 2010/01/08 17:06:00 espie Exp $ .\" .\" Documentation and design originally from FreeBSD. All the code has .\" been rewritten since. We keep the documentation's notice: @@ -15,7 +15,7 @@ .\" Jordan K. Hubbard .\" .\" -.Dd $Mdocdate: October 11 2009 $ +.Dd $Mdocdate: January 8 2010 $ .Dt PKG_INFO 1 .Os .Sh NAME @@ -24,7 +24,7 @@ .Sh SYNOPSIS .Nm pkg_info .Bk -words -.Op Fl AacCDdfIiKkLMmPqRrSstUv +.Op Fl AacCDdfIKLMmPqRSstUv .Op Fl E Ar filename .Op Fl e Ar pkg-name .Op Fl l Ar str @@ -115,14 +115,10 @@ will match any package that was compiled according to Show the packing list instructions for each package. .It Fl I Show the index entry for each package. -.It Fl i -Show the install script (if any) for each package. .It Fl K Prefix file names with category keyword (e.g., @file, @lib). Always used together with .Fl L . -.It Fl k -Show the de-install script (if any) for each package. .It Fl L Show the files within each package. This is different from just @@ -157,8 +153,6 @@ in emitting report headers and such, just dump the raw info (basically, assume a non-human reading). .It Fl R Show which packages require a given package. -.It Fl r -Show the requirements script (if any) for each package. .It Fl S Show the package signature for each package. This signature is a unique tag showing the package name, and the version number |