From owner-cvs-all@FreeBSD.ORG Wed Dec 12 11:16:37 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.ORG Received: by hub.freebsd.org (Postfix, from userid 1033) id AA46C16A468; Wed, 12 Dec 2007 11:16:37 +0000 (UTC) Date: Wed, 12 Dec 2007 11:16:37 +0000 From: Alexey Dokuchaev To: Matthias Schmidt Message-ID: <20071212111637.GA18577@FreeBSD.org> References: <200712091101.lB9B1w0C070261@repoman.freebsd.org> <20071210180238.GA93589@dragon.NUXI.org> <475D8C81.9010805@FreeBSD.org> <475D9217.6010506@delphij.net> <20071211083541.GB46695@staatsfeind.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20071211083541.GB46695@staatsfeind.org> User-Agent: Mutt/1.4.2.1i Cc: Doug Barton , d@delphij.net, cvs-src@FreeBSD.ORG, obrien@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, Kirill Ponomarew Subject: Re: cvs commit: src/usr.sbin/pkg_install Makefile src/usr.sbin/pkg_install/add pkg_add.1 src/usr.sbin/pkg_install/create pkg_create.1 src/usr.sbin/pkg_install/delete pkg_delete.1 src/usr.sbin/pkg_install/info pkg_info.1 src/usr.sbin/pkg_install/search Makefile pkg_search.1 ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2007 11:16:37 -0000 On Tue, Dec 11, 2007 at 09:35:41AM +0100, Matthias Schmidt wrote: > case "$1" in > -i) > awk -F\| -v name="$2" \ > '{\ > if ($1 ~ name) { \ > split($2, a, "/"); \ > printf("Name\t: %s-50\nDir\t: %-50s\nDesc\t: %-50s\nURL\t: %-50s\nDeps\t: %s\n\n", $1, $2, $4, $10, $9); \ > } > }' ${INDEXDIR}${INDEXFILE} Backslashes @ EOL for embedded awk(1) code look ugly and can easily be dropped. ./danfe