Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2000 20:46:28 +0100
From:      Phil Pennock <phil@globnix.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Submitting a program
Message-ID:  <20000323204628.A10998@athenaeum.globnix.org>

next in thread | raw e-mail | index | archive | help
Hi,

I just hacked up a quick script, which I can't believe I'd be the only
user of.  I've scanned the website, but can't see where I send it to in
order to submit it.

It's part of the pkg maintenance stuff, and just tells you which package
'owns' files by that name.  If there's already a way of doing this with
pkg_info(1) under FreeBSD3.4 then could someone please point me to the
documentation for it.  Ta.

Given that it's so short, I'll just include it here and have done with
it.  However, I would like to know how I'm supposed to submit it.

I call it: pkg_which
-----------------------------< cut here >-------------------------------
#!/bin/sh
cd /var/db/pkg
for i in "$@"
do
	egrep -l -- "^[^@](.*/)?$i\$" */+CONTENTS | cut -d / -f 1
done
-----------------------------< cut here >-------------------------------

I hereby grant permission to release that under a *BSD license.  :^)

HTH HAND
-- 
--> Phil Pennock, DeathWatch Admin.
"We've got a patent on the conquering of a country through the use of force.
 We believe in world peace through extortionate license fees."  -Bluemeat


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000323204628.A10998>