On Mon, Oct 11, 2010 at 9:25 AM, Alexander Gladysh <[email protected]> wrote: > On Mon, Oct 11, 2010 at 10:24, steve donovan <[email protected]> > wrote: >> On Sun, Oct 10, 2010 at 9:24 PM, Alexander Gladysh <[email protected]> >> wrote: >>> pushd "${PROJECT_PATH}" >/dev/null > >>> sudo luarocks remove "${ROCK_NAME}" >>> sudo luarocks make "${ROCKSPEC}" > >>> popd >/dev/null > >> Now I understand - you want something like this > >> sudo luarocks --path ${PROJECT_PATH} make ${ROCKSPEC} > > Yes, that is correct. > >> That would be fairly straightforward, using fs.change_dir() and then >> fs.pop_dir().
This is the kind of little feature that I'm not sure if it's worth adding: it's also straightforward to use pushd/popd in the outer script. One of my goals is to keep LuaRocks small and still be a convenient tool for interactive command-line use (hence the "smart" handling of arguments in a number of commands), but to keep simplicity one have to leave some bells and whistles out... -- Hisham _______________________________________________ Luarocks-developers mailing list [email protected] http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
