Module luarocks.pack

Module implementing the LuaRocks "pack" command. Creates a rock, packing sources or binaries.

Functions

pack_source_rock (rockspec_file) Create a source rock.
run (..., arg, version) Driver function for the "pack" command.


Functions

pack_source_rock (rockspec_file)
Create a source rock. Packages a rockspec and its required source files in a rock file with the .src.rock extension, which can later be built and installed with the "build" command.

Parameters

  • rockspec_file: string: An URL or pathname for a rockspec file.

Return value:

string or (nil, string): The filename of the resulting .src.rock file; or nil and an error message.
run (..., arg, version)
Driver function for the "pack" command.

Parameters

  • ...:
  • arg: string: may be a rockspec file, for creating a source rock, or the name of an installed package, for creating a binary rock.
  • version: string or nil: if the name of a package is given, a version may also be passed.

Return value:

boolean or (nil, string): true if successful or nil followed by an error message.

Valid XHTML 1.0!