version -> 0.12.0

- added: pkg_grep_summary
   - do not depend on wip/paexec, install it manually
   - fixes in usage message of pkg_grep_summary
This commit is contained in:
Aleksey Cheusov 2008-07-07 14:25:26 +00:00 committed by Thomas Klausner
parent 75bf65cd59
commit 51c3bb7985
7 changed files with 70 additions and 14 deletions

View file

@ -0,0 +1,6 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2008/07/07 14:25:26 cheusov Exp $
If you want to build a source summary (pkg_src_summary)
using several parallel processes or several machines,
install wip/paexec package. paexec>=0.9.0 is needed.
===========================================================================

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2008/06/15 14:07:19 cheusov Exp $
# $NetBSD: Makefile,v 1.17 2008/07/07 14:25:26 cheusov Exp $
DISTNAME= pkg_summary-utils-${VERSION}
CATEGORIES= pkgtools
@ -10,10 +10,11 @@ HOMEPAGE= http://www.mova.org/~cheusov/pub/pkg_summary-utils/
COMMENT= Utilities for manipulating pkg_summary(5) files
DEPENDS+= runawk>=0.12.1:../../wip/runawk
DEPENDS+= paexec>=0.9.0:../../wip/paexec
DEPENDS+= awk-pkgsrc-dewey>=0.5.6:../../wip/awk-pkgsrc-dewey
DEPENDS+= pipestatus-[0-9]*:../../wip/pipestatus
CONFLICTS+= paexec<0.9.0
CONFLICTS+= pkg_src_summary-[0-9]*
CONFLICTS+= pkg_cmp_summary-[0-9]*
CONFLICTS+= pkg_src_update_summary-[0-9]*

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.7 2008/06/14 10:27:34 cheusov Exp $
@comment $NetBSD: PLIST,v 1.8 2008/07/07 14:25:26 cheusov Exp $
bin/cvs_checksum
bin/pkg_cmp_summary
bin/pkg_grep_summary
@ -12,6 +12,7 @@ bin/pkg_update_src_summary
bin/pkg_update_summary
man/man1/cvs_checksum.1
man/man1/pkg_cmp_summary.1
man/man1/pkg_grep_summary.1
man/man1/pkg_list_all_pkgs.1
man/man1/pkg_micro_src_summary.1
man/man1/pkg_refresh_summary.1

View file

@ -19,7 +19,8 @@ SCRIPTS+= pkg_update_src_summary pkg_summary4view
SCRIPTS+= pkg_update_summary pkg_grep_summary
SCRIPTS+= cvs_checksum
MAN= pkg_cmp_summary.1 pkg_micro_src_summary.1
MAN= pkg_cmp_summary.1 pkg_grep_summary.1
MAN+= pkg_micro_src_summary.1
MAN+= pkg_src_summary.1 pkg_update_src_summary.1
MAN+= pkg_summary4view.1 pkg_update_summary.1
MAN+= pkg_refresh_summary.1 pkg_list_all_pkgs.1

View file

@ -1 +1 @@
VERSION= 0.11.1
VERSION= 0.12.0

View file

@ -27,25 +27,22 @@ usage (){
cat 1>&2 <<EOF
pkg_grep_summary - output summaries about packages that matches
the specified condition.
In other words, pkg_grep_summary is a search tool,
just like PKGSRCDIR/pkglocate, pkg_find etc. but it is multifield
searcher and is fast because it uses summaries.
usage: pkg_grep_summary [OPTIONS] <FIELD> <AWK_CONDITION>
USAGE: pkg_grep_summary [OPTIONS] <FIELD> <AWK_CONDITION>
<FIELD> - PKGNAME, PKGPATH, DEPENDS etc.
<AWK_CONDITION> - boolean expression written in AWK language
OPTIONS:
-h|--help display this message
examples:
pkg_grep_summary 'PKGNAME' '$2 ~ /judy/' \
EXAMPLES:
pkg_grep_summary 'PKGNAME' '\$2 ~ /judy/' \\
< /usr/pkgsrc/packages/pkg_summary.txt
pkg_grep_summary 'PKGPATH' '$2 ~ /^lang\//' \
pkg_grep_summary 'PKGPATH' '\$2 ~ /^lang\//' \\
< /usr/pkgsrc/packages/pkg_summary.txt
pkg_grep_summary 'DEPENDS' '$2 ~ /libX/' \
pkg_grep_summary 'DEPENDS' '\$2 ~ /libX/' \\
< /usr/pkgsrc/pkg_src_summary.txt
pkg_grep_summary 'COMMENT' 'toupper($2) ~ /DNS/' \
pkg_grep_summary 'COMMENT' 'toupper(\$2) ~ /DNS/' \\
< /usr/pkgsrc/pkg_src_summary.txt
EOF
}

View file

@ -0,0 +1,50 @@
.\" $NetBSD: pkg_grep_summary.1,v 1.1 2008/07/07 14:25:26 cheusov Exp $
.\"
.\" Copyright (c) 2008 by Aleksey Cheusov (vle@gmx.net)
.\" Absolutely no warranty.
.\"
.Dd Jan 29, 2008
.Dt PKG_GREP_SUMMARY 1
.Sh NAME
.Nm pkg_grep_summary
.Nd matching program for pkgsrc packages summary
.Sh SYNOPSIS
.Nm
.Op Ar OPTIONS
.Sh DESCRIPTION
.Nm
outputs a summary information about packages that matches
the specified condition.
In other words, pkg_grep_summary is a search tool
somewhat similar to
grep
,
PKGSRCDIR/pkglocate
,
pkg_find
etc. but it is multifield
searcher and is fast because it uses summaries instead
of pkgsrc packages source tree.
.Pp
The options are as follows:
.Bl -tag -width indent
.It Fl h
display help message
.El
.Sh EXAMPLES
.Bd -literal
pkg_grep_summary 'PKGNAME' '$2 ~ /judy/' \\
< /usr/pkgsrc/packages/pkg_summary.txt
pkg_grep_summary 'PKGPATH' '$2 ~ /^lang\\//' \\
< /usr/pkgsrc/packages/pkg_summary.txt
pkg_grep_summary 'DEPENDS' '$2 ~ /libX/' \\
< /usr/pkgsrc/pkg_src_summary.txt
pkg_grep_summary 'COMMENT' 'toupper($2) ~ /DNS/' \\
< /usr/pkgsrc/pkg_src_summary.txt
.Ed
.Sh SEE ALSO
.Xr pkg_summary-utils 7
.Xr pkg_summary 5
.Sh AUTHOR
.An Aleksey Cheusov
.Aq vle@gmx.net