aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-10-18 18:05:31 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-10-18 18:05:31 -0300
commite5610e75350879305f8ab35a5bbd10cc85eeacb7 (patch)
treeb1be21b3e3fa87075d753d7e305c1aa1b332de3c
parenta9f9050e87c28a9fec1eaa45362a0841728f6849 (diff)
downloadluarocks-e5610e75350879305f8ab35a5bbd10cc85eeacb7.tar.gz
luarocks-e5610e75350879305f8ab35a5bbd10cc85eeacb7.tar.bz2
luarocks-e5610e75350879305f8ab35a5bbd10cc85eeacb7.zip
Add documentation.
-rw-r--r--src/luarocks/path.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua
index 7af81c07..f5a7e9ed 100644
--- a/src/luarocks/path.lua
+++ b/src/luarocks/path.lua
@@ -295,6 +295,12 @@ function configure_paths(rockspec)
295 rockspec.variables = vars 295 rockspec.variables = vars
296end 296end
297 297
298--- Produce a versioned version of a filename.
299-- @param file string: filename (must start with prefix)
300-- @param prefix string: Path prefix for file
301-- @param name string: Rock name
302-- @param version string: Rock version
303-- @return string: a pathname with the same directory parts and a versioned basename.
298function versioned_name(file, prefix, name, version) 304function versioned_name(file, prefix, name, version)
299 assert(type(file) == "string") 305 assert(type(file) == "string")
300 assert(type(name) == "string") 306 assert(type(name) == "string")