On Tue, Jul 28, 2009 at 12:59 PM, Xavier<[email protected]> wrote: > On Tue, Jul 28, 2009 at 7:54 PM, Aaron Griffin<[email protected]> wrote: >> >> Another thought would be to make the scriptlet executable and pass the >> "function" as an arg to the script, this way we can support >> #!/bin/bash and #!/bin/sh as well as a myriad of other things > > Then we need to put back the 3 magic lines in the few scripts where > they were removed, don't we? > > In any cases, it shouldn't be difficult to do that change > automatically on all scriptlets in the repo. > And either way, I think this should be done. Either remove these lines > from all scriptlets, or make sure all scriptlets have them.
Yeah, I'm not advocating it, just saying it's a possibility. I think I might actually like Loui's proposal, although it needs to be more complex: Check for ROOTDIR/bin/bash, if it exists, use it Else, check for ROOTDIR/bin/sh and use THAT if it exists If none exist, warn and carry on _______________________________________________ pacman-dev mailing list [email protected] http://www.archlinux.org/mailman/listinfo/pacman-dev
