Module dist.package
Package handling functions. This module deals with packages, these are unpacked dists in LuaDist terminology The following functions are provided: unpack - fetch and unpack a dist build - compile a source dist deploy - install a dist into deployment dir and/or fix links. pack - create dist from package delete - delete package
Functions
build (dist, depl, variables) | Build, deploy and test a source dist using CMake. |
delete (dist, depl) | Delete a deployed dist. |
deploy (dist, depl) | Deploy dist into deployment directory. |
pack (dist, depl, dir) | Pack a package to create a dist. |
unpack (url, dest) | Fetch and unpack zip/dist from URL into dest directory. |
Functions
- build (dist, depl, variables)
-
Build, deploy and test a source dist using CMake.
Parameters
- dist: string: Directory of the source dist to build.
- depl:
- variables:
Return value:
path, log: Returns temporary directory the dist was build into and log message. - delete (dist, depl)
-
Delete a deployed dist.
Parameters
- dist: string: dist to delete.
- depl: string: deployment dir to delete from.
Return value:
ok, log: Returns success and nlog message. - deploy (dist, depl)
-
Deploy dist into deployment directory.
Parameters
- dist: string: Directory of the dist to deploy.
- depl: string: Deployment directory nil for default.
Return value:
ok, log: Returns true on success and log message. - pack (dist, depl, dir)
-
Pack a package to create a dist.
Parameters
- dist: string: deployed dist to pack.
- depl: string: deployment dir to pack from.
- dir: string: Optional destination for the dist, current directory will be used by default.
Return value:
ok, log: Returns success and log message. - unpack (url, dest)
-
Fetch and unpack zip/dist from URL into dest directory.
Parameters
- url: string: Local packed dist or URL to fetch dist from.
- dest: string: Destination to unpack contents into, nil for temp directory.
Return value:
path, log: Unpacked dist path or nil and log.