HEADS UP: pkg-plist strict enforcement starting

Kirill Ponomarew krion at voodoo.oberon.net
Fri Jan 14 13:34:28 PST 2005


On Sat, Jan 15, 2005 at 08:12:06AM +1100, Edwin Groothuis wrote:
> Maybe we need two additional @ commands for pkg-plist:
> 
> - @dirrmifempty foo/bar
>     does do what "@unexec rmdir %D/foo/bar 2>/dev/null || true" does.
> 
> - @rmifdifferent foo/bar foo/baz
>     does do what "@unexec cmp %D/foo/bar %D/foo/baz && rm %D/foo/bar" does.
> 
> This way we
> 
> - have an easy and consistent syntax for a difficult command
> 
> - have less chance for errors (forgetting %D, && instead of ||)
> 
> Comments?

Sounds interesting, but I'd change @rmifdifferent to something like
@rmconfig since it's used by config files in most cases.

-Kirill


More information about the freebsd-ports mailing list