On Wed, Apr 1, 2009 at 4:13 AM, Christian Faulhammer <fa...@gentoo.org> wrote: > Hi, > > Donnie Berkholz <dberkh...@gentoo.org>: > >> On 12:59 Fri 27 Mar , Fabian Groffen wrote: >> > This eclass facilitates in some of the needs of the Gentoo Prefix >> > project. For now it provides the 'eprefixify' function, which is >> > often used in Gentoo Prefix ebuilds to incorporate the used offset >> > prefix into files. >> >> It's great to see you moving toward folding this back into the main >> tree! My only comment is that eprefixify could really use a better >> name because that one sounds really awkward. How about doprefix, or >> something else? > > To install a prefix file? Like doman, dobin. :)
Not that I want to start an argument over a function name but it helps if you understand what eprefixify() does. eprefixify simply does a 's/@GENTOO_PORTAGE_EPREFIX@/$EPREFIX/' where EPREFIX is expanded to its abs value. The common use case for eprefixify is on installed scripts where you should be able to run the program in a prefix shell or not. (ie. you should be able to run it without EPREFIX being set in your env - this is true of all prefix executables) So, no, we do not exactly feel like a do* name is appropriate because this function is not installing anything. In a sense, we made 'eprefix' a verb and that really seems to make sense to new devs and new users. -Jeremy