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.
- ask user confirmation
- detects if love-release should be installed system-wide or in user
space
- moved completion form /etc/bash_completion.d/love-release to
/usr/share/bash-completion/completions/love-release
- 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
I have removed the platform-specific scripts form the main script an I
intend to store them in a specific location where they can be sourced by
the main script.
The mechanism to add a subscript is fairly simple. It is all explained
with comments inside the script.
I also moved out form the main script the getoptex function for
clarification into an include directory that will be use to store an
eventual INI parser later.