Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] SheBang script
Date: Wed, 14 Sep 2005 16:51:45
In Reply to: Re: [gentoo-osx] SheBang script by Brian Harring
Brian Harring wrote:
>> The problem with these kinds of scripts is that their portability is not >> really assured. I dubbed whether I would write a quick C version, but >> again I stumbled upon the portability question and decided not to do so, >> because portage, as inner core of Gentoo, should be as much as possible >> unaffected by environmental differences. Python is (like Java) a >> solution to that. So, ultimately, this script should be rewritten in >> Python. > module, not script is prefered.
As I said, I'm a python illiterate :)
> Assuming I actually finish triggers and they don't suck, it'll be a > passing the func in, not exec'ing a strict.
hmmm... sounds good. For my understanding, does it mean that the func could be executed based on (trigger) conditions, like ppc-macos or PREFIX != "/", pref.userWantsSheBang == True or something like that? -- Fabian Groffen Gentoo for Mac OS X -- gentoo-osx@g.o mailing list


Subject Author
Re: [gentoo-osx] SheBang script Grobian <grobian@g.o>