From 70b27922867eda8f55523e6068440336132baef0 Mon Sep 17 00:00:00 2001 From: Aleksey Cheusov Date: Sun, 2 Jan 2011 21:37:42 +0000 Subject: [PATCH] Add pkg_summary2leaves.1 --- pkg_summary-utils/PLIST | 3 +- pkg_summary-utils/files/Makefile | 2 +- pkg_summary-utils/files/pkg_summary2leaves.1 | 53 ++++++++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 pkg_summary-utils/files/pkg_summary2leaves.1 diff --git a/pkg_summary-utils/PLIST b/pkg_summary-utils/PLIST index 0c4b144955..eef201b84b 100644 --- a/pkg_summary-utils/PLIST +++ b/pkg_summary-utils/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.30 2010/12/11 23:36:05 cheusov Exp $ +@comment $NetBSD: PLIST,v 1.31 2011/01/02 21:37:42 cheusov Exp $ bin/cvs_checksum bin/pkg_assignments2pkgpath bin/pkg_bin_summary @@ -39,6 +39,7 @@ man/man1/pkg_src_summary.1 man/man1/pkg_subgraph_deps.1 man/man1/pkg_summary2build_graph.1 man/man1/pkg_summary2deps.1 +man/man1/pkg_summary2leaves.1 man/man1/pkg_summary4view.1 man/man1/pkg_uniq_summary.1 man/man1/pkg_update_src_summary.1 diff --git a/pkg_summary-utils/files/Makefile b/pkg_summary-utils/files/Makefile index 8bf8800d68..753233cee2 100644 --- a/pkg_summary-utils/files/Makefile +++ b/pkg_summary-utils/files/Makefile @@ -50,7 +50,7 @@ MAN += pkg_uniq_summary.1 # pkg_summary2bb_pkgs.1 MAN += pkg_cleanup_distdir.1 pkg_summary2build_graph.1 MAN += pkg_summary2deps.1 pkg_lint_summary.1 MAN += pkg_subgraph_deps.1 pkg_bin_summary.1 -MAN += pkg_digger.1 # pkg_digger_backend.1 pkg_summary2leaves.1 +MAN += pkg_digger.1 pkg_summary2leaves.1 # pkg_digger_backend.1 FILES = README NEWS TODO FILES += pkg_grep_summary.awk pkg_src_summary.mk psu_funcs.awk diff --git a/pkg_summary-utils/files/pkg_summary2leaves.1 b/pkg_summary-utils/files/pkg_summary2leaves.1 new file mode 100644 index 0000000000..09b0318c19 --- /dev/null +++ b/pkg_summary-utils/files/pkg_summary2leaves.1 @@ -0,0 +1,53 @@ +.\" $NetBSD: pkg_summary2leaves.1,v 1.1 2011/01/02 21:37:42 cheusov Exp $ +.\" +.\" Copyright (c) 2010 by Aleksey Cheusov (vle@gmx.net) +.\" Absolutely no warranty. +.\" +.\" ------------------------------------------------------------------ +.de VB \" Verbatim Begin +.ft CW +.nf +.ne \\$1 +.. +.de VE \" Verbatim End +.ft R +.fi +.. +.\" ------------------------------------------------------------------ +.TH PKG_SUMMARY2LEAVES 1 "Jan 2, 2011" "" "" +.SH NAME +.B pkg_summary2leaves +output leaf packages +.SH SYNOPSIS +.BI pkg_summary2leaves " [OPTIONS] file [files...]" +.SH DESCRIPTION +.B pkg_summary2leaves +takes package summaries on input +and outputs summaries for leaf packages. +.SH OPTIONS +.TP +.B "-h" +Display help message. +.TP +.B "-r" +Select leaf packages recursively, implies -a. +.TP +.B "-a" +Output automatically installed leaves only, +a field 'automatic' is expected on input. +.TP +.B "-p" +Output PKGPATHs instead of summaries. +.TP +.B "-v" +Invert the sense of match. +.SH EXAMPLES +.VB + pkg_bin_summary -f PKGPATH,automatic >summaries.txt; \\ + pkg_summary2leaves summaries.txt +.VE +.SH SEE ALSO +.BR pkg_summary-utils(7) , +.BR pkg_summary(5) , +.SH AUTHOR +Aleksey Cheusov