mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
* Installs luarocks WITH it's executable (easy to install other rocks if necessary) * Use Lua supplied with luarocks * Create Utils/luadocumentor.bat, which works with RELATIVE PATH ! -> Everybody can generate the doc * Updated launch files accordingly
20 lines
792 B
Lua
20 lines
792 B
Lua
|
|
--- Fetch back-end for retrieving sources from local Git repositories.
|
|
local git_file = {}
|
|
|
|
local git = require("luarocks.fetch.git")
|
|
|
|
--- Fetch sources for building a rock from a local Git repository.
|
|
-- @param rockspec table: The rockspec table
|
|
-- @param extract boolean: Unused in this module (required for API purposes.)
|
|
-- @param dest_dir string or nil: If set, will extract to the given directory.
|
|
-- @return (string, string) or (nil, string): The absolute pathname of
|
|
-- the fetched source tarball and the temporary directory created to
|
|
-- store it; or nil and an error message.
|
|
function git_file.get_sources(rockspec, extract, dest_dir)
|
|
rockspec.source.url = rockspec.source.url:gsub("^git.file://", "")
|
|
return git.get_sources(rockspec, extract, dest_dir)
|
|
end
|
|
|
|
return git_file
|