Closed kbara closed 9 years ago
The question, to me, is "do we want an env script (yet), or not?"
If we do, and we're happy to use shell, your suggested one is superior in every way. I fully agree about prepending. This patch generates the script because the equivalent of setting $thisdir is really ugly in Lua, as far as I can tell; if we use shell instead, that's a non-issue, and it doesn't break if someone moves the directory.
This is obsolete; I've created https://github.com/Igalia/pflua/pull/173 , based on the template you provided. :)
Do you think it's better to generate it? For me it could make sense to just check it into git. Dunno. E.g. I have this for one of my projects:
We'd only need PATH and LUAPATH of course. And there are ways to do it without the prepend helper. But it does make sense to be sure to augment the paths, instead of re-setting them.