Table unpack is not available in either Lua 5.1 nor LuaJIT, yet it's used as a fallback for unpack. This is not an error on itself, but is listed as an error by Luacheck. An alternative solution would be to remove this line entirely
This issue was related to Lua not handling coroutines iterators right, the function being recursive generated multiple coroutine iterators and they didn't resume right. The solution is to make the first loop non-recursive and create a secondary loop where the recursive function is called.
Declaration and assignment must be separate statements when the
assignment value is provided by a command substitution;
as the 'local' builtin does not propagate the exit code from
the command substitution. #24
Makefile:
- short help was not properly created
love-release.sh:
- script aborts if GNU getopt is not found
- add GNU readlink as dependency, will check for greadlink too
README.md:
- add GNU readlink as dependency
Changed `sed -r` to `sed -E`. OSX does not support `sed -r` while
FreeBSD does. GNU sed seems to support `sed -E` even if it is not
in the man page.
Changed install command.
- dot files are now properly excluded when zipping
- add PROJECT_DIR variable
- add new deps exit in module_exit
- an optional error message can be passed to module_exit
- escaped characters will now be interpreted in error messages
- fix in compare_version
Options can now be prefixed to be used only for the module the prefix
corresponds to. For example `--author` will set the author's name for
the whole project, but `--Wauthor` will set it for Windows only and
`--Dauthor` for Debian only.
If a module requires new options, they will be automatically prefixed at
compilation.
Most of the modules options have been renamed for consistency.
The `read_option` function was added to parse the default options.
It can use a prefix to parse the options for a module.
Each module now has a specific directory in the cache to allow
per-module cache cleaning.