Mercurial > repo
view share/lua/5.2/luarocks/fetch/git_file.lua @ 8741:281c61d63444
<pikhq> ` cat >src/pikhqbow.c <<<$\'#include <stdio.h>\\n#include <wchar.h>\\n\'\'int main(){wint_t c;int a=2;b:c=fgetwc(stdin);if(c==EOF) return 0;printf("\\x03%02d%s%lc",a,c==L\'\\\'\',\'\\\'\'?",99":"",c);a++;if(a==14)a=2;goto b;}\'
author | HackBot |
---|---|
date | Tue, 05 Jul 2016 04:39:38 +0000 |
parents | d137f631bad5 |
children |
line wrap: on
line source
--- Fetch back-end for retrieving sources from local Git repositories. module("luarocks.fetch.git_file", package.seeall) 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 get_sources(rockspec, extract, dest_dir) rockspec.source.url = rockspec.source.url:gsub("^git.file://", "") return git.get_sources(rockspec, extract, dest_dir) end