Subject: Re: Repetative OWN_DIRS_PERMS
To: Julio M. Merino Vidal <jmmv@menta.net>
From: Mike M. Volokhov <mishka@terabyte.com.ua>
List: tech-pkg
Date: 09/18/2003 19:29:32
On Wed, 17 Sep 2003 22:06:51 +0200
"Julio M. Merino Vidal" <jmmv@menta.net> wrote:

> On Wed, 17 Sep 2003 22:52:36 +0300
> "Mike M. Volokhov" <mishka@terabyte.com.ua> wrote:
> 
> > 	$ make USER_DIR_1=mydir USER_DIR_2=mydir
> > 
> > In this case "make deinstall" shows two just the same directories:
> > 
> > ===========================================================================
> > If you won't be using foo-0.0 any longer, you may want to remove
> > 
> >   * the following directories:
> > 
> > 	mydir
> > 	mydir
> > 
> > ===========================================================================
> > 
> > As you can uderstand, this list may be very long. The patch below
> > tries to improve this situation.
> 
> Which problem are you exactly trying to solve?  Avoiding repeated directories?

That's it.

> If so, just sort(1) the list and then use uniq(1) on the results.
> 

Two problems:
1) Created list is SPACE separated. This is cause why I've used '-R'
   option in sort(1). And this is NetBSD-ism, IMHO.
2) pkgsrc/mk/* files does not define ${UNIQ}\uniq at all.

--
Mishka