Date: Fri, 05 Jun 2009 14:47:24 -0400 From: Eitan Adler <eitanadlerlist@gmail.com> To: vmagerya@gmail.com Cc: freebsd-ports@freebsd.org Subject: Re: Automatically generate symlinks for virtual categories. Message-ID: <4A29683C.3030301@gmail.com> In-Reply-To: <accd96830906051038m47104ec1oa79c938949e5ca3e@mail.gmail.com> References: <4A28590D.101@gmail.com> <accd96830906050419k7ef2469tb1bb22aad4956fe0@mail.gmail.com> <accd96830906050556m660e63cw3c14edfb7f526796@mail.gmail.com> <4A2946F4.2010501@gmail.com> <accd96830906051038m47104ec1oa79c938949e5ca3e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Vitaly Magerya wrote: >> I'll added your script to mine as a option. > Yeah, I've done that too in the mean time, take a look: [1]. > In that version both traverse algorithms share common linking code, > it seems more maintainable this way. Interesting - I will play with my version and try to make it more modular like yours. I'm also working on making it a port: ports-mgmt/symports. > (I've added -w and -i to catch up with you, but the code overall > is quite different, sorry about that). No problem - different code == interesting code > > There's a question about the test for main category dir: > if you use -w to specify a directory different than that of -p, > a simlink "$whereto/category/portname-category" will be created. > Maybe "$whereto/category/portname" would be the right thing in this case? No - you still have the issue of languages. For example japanese/xchat and irc/xchat have the same name. This is the issue I was trying to avoid. > > [1] http://tx97.net/pub/files/auto-symlink-virtual.sh > Thanks for the ideas (and code)! -- Eitan Adler "Security is increased by designing for the way humans actually behave." -Jakob Nielsen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A29683C.3030301>