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
This commit is contained in:
Antonin Décimo
2014-08-22 14:07:44 +02:00
parent 83a5f111b7
commit 5bbf17401a
12 changed files with 502 additions and 18 deletions

View File

@@ -2,6 +2,23 @@
init_module "Android"
# Configuration
if [ "$CONFIG" = true ]; then
if [ -n "${INI__android__activity}" ]; then
ACTIVITY=${INI__android__activity}
fi
if [ -n "${INI__android__package_name}" ]; then
PACKAGE_NAME=${INI__android__package_name}
fi
if [ -n "${INI__android__package_version}" ]; then
PACKAGE_VERSION=${INI__android__package_version}
fi
if [ -n "${INI__android__maintainer_name}" ]; then
MAINTAINER_NAME=${INI__android__maintainer_name}
fi
fi
# Options
activity_defined_argument=false
package_name_defined_argument=false
@@ -104,5 +121,6 @@ else
fi
unset ACTIVITY PACKAGE_NAME PACKAGE_VERSION MAINTAINER_NAME
exit_module