Date: Tue, 11 Jan 2000 23:08:29 -0800 From: "David O'Brien" <obrien@FreeBSD.ORG> To: "Matthew D. Fuller" <fullermd@futuresouth.com> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c Message-ID: <20000111230829.A86450@dragon.nuxi.com> In-Reply-To: <20000111184544.B22816@futuresouth.com>; from fullermd@futuresouth.com on Tue, Jan 11, 2000 at 06:45:45PM -0600 References: <26517.947620979@zippy.cdrom.com> <200001112101.NAA25463@gndrsh.dnsmgr.net> <20000111184544.B22816@futuresouth.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 11, 2000 at 06:45:45PM -0600, Matthew D. Fuller wrote: > Wasn't there a discussion some time ago about making pkg_delete accept a > '/var/db/pkg/package-name-version' argument to allow use of filename Use a script: #!/bin/sh - OPTS="" while : do case "$1" in -*) OPTS="$1 ${OPTS}" shift ;; *) break ;; esac done case $# in 0) echo "usage: $0 [opts] pkg ..." >&2 exit 1;; esac for PKG in "$@" do /usr/sbin/pkg_delete ${OPTS} `/usr/bin/basename $PKG` done exit $? -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000111230829.A86450>