Commit Graph

11 Commits

Author SHA1 Message Date
Antonin Décimo
16387f4f7e Merge execute_module in init_module 2015-06-16 17:39:46 +02:00
Antonin Décimo
2c588118af Modules and functions have return values
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.
2015-06-16 17:38:44 +02:00
Antonin Décimo
72ada933f1 Improves modules sourcing
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.
2015-06-16 13:33:43 +02:00
Antonin Décimo
21c6e2c22a MacOS app respects symlinks, also completes files 2014-09-24 23:34:46 +02:00
Antonin Décimo
465030dbeb Little fixes. Description and Homepage now global. 2014-09-04 10:37:59 +02:00
Antonin Décimo
967a483355 Register options that takes files as argument to exclude these files for every build 2014-08-24 11:12:57 +02:00
Antonin Décimo
fd4e0195a7 Conflicting options are now prefixed #8 2014-08-23 11:51:53 +02:00
Antonin Décimo
5bbf17401a Add configuration. See #5 #8.
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
2014-08-22 14:07:44 +02:00
Antonin Décimo
d0c14011c6 Add --filesync option. Love file stays in release dir 2014-08-20 10:28:07 +02:00
Antonin Décimo
a3ac751f9e Add zip compression level option. Fix exit_module function 2014-08-20 10:15:40 +02:00
Antonin Décimo
f2b0c454f0 Add Mac OS X module 2014-08-19 21:14:20 +02:00