Modules can now use return values with the exit_module function.
Some return values are predefined, use them by passing special string
to the function.
Most of the functions also switched from a echo "true" to return 0
scheme, which means that every test involving theses functions was
rewritten.
No more need for the reset_vars function, as modules are run in
subshells, thus providing a new scope level.
The case when no modules is specified is better handled, a LÖVE file is
created by default.
A module should always begin with a test to `execute_module` to see if
it should be executed. As modules are always sourced
(even when embedded), a simple `return` will stop the subscript.
Modules are executed in a subscript, so the global space will not be
polluted, and will also be reset after the execution of the module.
This commit also solves some bugs in Makefile and lua parser.
- rename --activity to --apk-activiy,
- support absolute or relative path for icon directory argument,
- rename love-LOVE_VERSION-winXX to PROJECT_NAME-winXX inside windows
release zip.
What's new:
- --config flag to pass a INI config file to parse. See config.ini.
- Updated the modules scripts for configuration. Now needs to unset
variables passed by CLI or config.
- Fix release directory that was added in love file (maybe).
- Properly escapes sed arguments.
- chmod +x to getopt.sh and read_ini.sh
- Fix#12