Commit Graph

157 Commits

Author SHA1 Message Date
Pablo Ariel Mayobre
7d5532ebe4 Fix issue #36 and #44
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.
2017-05-19 19:05:54 +02:00
Tanner Rogalsky
339cbe7b42 Exclude files (#42)
File exclusion from pattern exclusion list
2017-01-18 14:41:35 +01:00
Antonin Décimo
e6f8f7386a Update default LÖVE version to 0.10.2 2016-11-01 16:34:57 +01:00
Antonin Décimo
815ec87f80 Test every branch except legacy bash 2016-05-28 11:52:19 +02:00
Antonin Décimo
e4262b0fbe Remove unusued tests 2016-05-28 01:07:26 +02:00
Antonin Décimo
0b22cd309f Version 2.0.3 2016-05-28 01:01:24 +02:00
Antonin Décimo
5c032354e4 Merge pull request #37 from GeoffreyFrogeye/debian-escape
Debian: Allows special characters in title
2016-05-12 10:41:37 +02:00
Geoffrey Frogeye
0e0251840d Debian: Allows special characters in title
When using spaces in title, the executable in /usr/bin
would silently not load the file and show the default
"no game" screen
2016-05-11 17:34:48 +02:00
Antonin Décimo
65a981bdfc Version 2.0.2 2016-02-14 16:51:28 +01:00
Antonin Décimo
e443881526 Update default LÖVE version to 0.10.1 2016-02-14 16:51:20 +01:00
Antonin Décimo
003fe38191 Fix README 2016-02-06 15:03:13 +01:00
Antonin Décimo
ef3e82eedd Version 2.0.1 2016-02-06 13:29:32 +01:00
Antonin Décimo
6d8cde0716 Add framework for testing 2016-02-06 13:16:29 +01:00
Antonin Décimo
8ac10b91a0 Merge pull request #33 from KevinBalz/master
Fixed misleading error message for Mac OS X
2016-02-06 12:56:43 +01:00
Kevin Balz
36c8c19317 Fixed misleading error message for Mac OS X
When the identifier is missing it would prompt an error message
which would tell that the author is missing.
2016-02-06 12:32:08 +01:00
Antonin Décimo
be84086b1d Mark the debian main script as executable 2016-02-02 00:55:58 +01:00
Antonin Décimo
877e5b4566 Fix rockspec 2016-01-22 01:29:54 +01:00
Antonin Décimo
3fb40c9099 Version 2.0.0 2016-01-22 00:51:29 +01:00
Antonin Décimo
d639fcbf6d Add command-line interface 2016-01-22 00:48:46 +01:00
Antonin Décimo
873934e526 Rewrite in Lua with LuaRocks 2016-01-22 00:48:37 +01:00
Antonin Décimo
48c3bd657c Fixed all bugs 2016-01-21 19:32:40 +01:00
Antonin Décimo
b3a3d238d0 Bump LICENSE year 2016-01-21 19:32:40 +01:00
Antonin Décimo
d99fc51c06 Use LÖVE 0.10.0 by default 2015-12-22 23:33:36 +01:00
Antonin Décimo
6d1e325491 Use MIT license, close #28 2015-12-14 14:56:18 +01:00
Antonin Décimo
f43a111c81 Fix #26, regression in 86a936f 2015-11-17 20:09:07 +01:00
Antonin Décimo
86a936fbf0 Declared readonly constants, fix local variables
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
2015-09-28 10:29:49 +02:00
Antonin Décimo
c1688d281d Add main function. Update Makefile accordingly. 2015-09-28 09:55:20 +02:00
Antonin Décimo
8acc70afd4 Fix for #23, but Windows icons doesn't work yet. 2015-09-06 19:57:31 +02:00
Antonin Décimo
1a70aa54a6 Add dependency check 2015-08-30 15:51:07 +02:00
Antonin Décimo
b5c73fef0f Doc cleanup 2015-08-30 15:34:24 +02:00
Antonin Décimo
e20238a6ac Bug fixes on OS X, add GNU readlink as deps #20
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
2015-07-12 16:20:11 +02:00
Antonin Décimo
ae3b742c45 Replace realpath by readlink #21 2015-07-09 11:45:03 +02:00
Antonin Décimo
661f041216 Changed --W arch to -W arch, fix win not executing 2015-07-09 11:29:51 +02:00
Antonin Décimo
a078106148 Compatibility GNU/BSD, fix #20
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.
2015-07-06 12:19:33 +02:00
Antonin Décimo
d4291daf92 Clean documentation, add dependencies 2015-06-26 19:35:13 +02:00
Antonin Décimo
3034c43cc0 Rewrite example.sh to modules.md 2015-06-26 19:34:17 +02:00
Antonin Décimo
0e9c8b624d Add modules options in short help 2015-06-26 19:21:27 +02:00
Antonin Décimo
b968ddbc82 Stop if there is no main.lua file 2015-06-26 19:21:27 +02:00
Antonin Décimo
55e7685fa1 Rewrite Android module 2015-06-26 19:21:27 +02:00
Antonin Décimo
d0d40950d4 Rewrite Mac OS X module 2015-06-26 19:21:27 +02:00
Antonin Décimo
4cda1607e9 Reimplement option to exclude files 2015-06-26 19:21:27 +02:00
Antonin Décimo
48bda5fbc1 Rewrite Windows module
TODO: check if there is no problems with icons and installer
2015-06-26 19:19:53 +02:00
Antonin Décimo
9ebfe82e6b Rewrite Debian module 2015-06-26 18:42:09 +02:00
Antonin Décimo
ba6537c7ae Bug fixes
- 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
2015-06-26 15:42:59 +02:00
Antonin Décimo
1d6443044f Little fix in read_config 2015-06-24 01:50:47 +02:00
Antonin Décimo
2ce23ea032 Fix init_module and default module 2015-06-24 01:20:45 +02:00
Antonin Décimo
2dc8fd07d5 Update bash completion 2015-06-24 00:23:03 +02:00
Antonin Décimo
979ddf5719 Options can be prefixed for a specific module
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.
2015-06-23 22:32:26 +02:00
Antonin Décimo
63bb8cc807 Add new options, rename some
Modules options have been capitalized.
"project's name" was renamed to "project's title".
Many options to set global variables were added.
"--clean" option was reimplemented.
2015-06-23 17:41:01 +02:00
Antonin Décimo
6302efed97 Options & file args support with GNU getopt
Short options are stored in the OPTIONS variable, and longs in
LONG_OPTIONS. Modules scripts need to add theses to be able to use
options. Theses lines are then parsed by sed at make-time and added to
the corresponding variable in the main script.

init_module now requires a third argument corresponding to the option
that will trigger the execution of the module.

Files can also be passed by argument to zip. They are stored in the
FILES array.

check_deps:
    - add dependency check for GNU getopt,
    - echo errors to stderr

gen_version now returns 0 on success and 1 on failure.

Add short_help function. Shown if -h options is passed, or on parsing
options failure.

exit_module:
    - add 'options' exit value if there is an error while parsing the
      options,
    - add 'version' exit value if there is an error while generating
      LÖVE version from user input.

dump_var shows files to zip.

Script will now exit if it has not been embedded nor installed.
Fix bugs with default module.
2015-06-22 22:54:49 +02:00