Commit graph

1254 commits

Author SHA1 Message Date
Tuncer Ayaz
9715c40386 rebar_core: remove useless return after ?ABORT call 2013-02-26 18:24:50 +01:00
Tuncer Ayaz
2b9241bd2b rebar_core: document pre-dirs association 2013-02-26 18:24:50 +01:00
Dave Smith
e36b9c1bff Merge pull request #59 from Vagabond/adt-read-lists-from-files
Support reading mustache 'lists' from files
2013-02-26 07:23:26 -08:00
Dave Smith
174c69022a Merge pull request #22 from tuncer/help
Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msg
2013-02-26 07:22:47 -08:00
Slava Yurin
fb77295a1f Fix handling of Unicode characters in env vars 2013-02-18 14:20:27 +07:00
Andrew Thompson
ee8919420d Support reading mustache 'lists' from files
This commit add support for reading mustache 'lists' from files, so you
can use the list section functionality when templating things.

An example of the list syntax is as follows:

{package_commands, {list, [[{name, "riak"}], [{name, "riak-admin"}], [{name, "search-cmd"}]]}}.

Then you can, for each of the list elements, render some text:

{{#package_commands}}
chmod +x bin/{{name}}
{{/package_commands}}
2013-01-30 16:43:29 -05:00
Juan Jose Comellas
e2b1941c4b Add latest version getopt that automatically wraps usage output lines 2013-01-25 21:48:37 -03:00
Jared Morrow
c4989f0939 Change simplenode template files to work on more platforms
When developing Riak, we have found bugs and other issues due
to the number of platforms we support.

Here is an overview of the changes:
  -  Fix command-line syntax for commands to work on *BSD / Sun
  -  Add chkconfig and getpid to nodetool
  -  Replace platform specific 'kill' commands with a nodetool
	getpid method
  -  Fix RUNNER_USER settings to work on *BSD
2013-01-17 14:41:21 -07:00
Matthew Conway
6bab3c86d2 Remove leading empty line from a template 2013-01-14 18:00:48 -08:00
Oliver Ferrigni
d893708563 Fix file handling on windows for tests
Running tests on windows creates false positive due to setup failures
not executing all tests.  Checking for tmp_dir was failing on
subsequent runs.  Added cases to tmp_dir creation to delete preexisting
tmp_dirs in .eunit directory.
2013-01-14 15:16:13 -06:00
Tuncer Ayaz
4b8c81fb53 Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msg
* allow plugins to print help message for implemented commands
* append core rebar.config options to common 'rebar help' message
2012-12-31 20:45:11 +01:00
Slava Yurin
b63328bb16 Correct ext of neotoma output file 2012-12-31 11:16:47 +07:00
Dave Smith
78fa8fc3d5 Merge branch 'saleyn-erlydtl' 2012-12-17 09:27:07 -07:00
Dave Smith
f2b79fc748 Merge pull request #48 from tuncer/286
Fix basho/rebar/issues/286
2012-12-17 08:04:02 -08:00
Tuncer Ayaz
2716d83a18 Fix basho/rebar/issues/286 2012-12-17 12:53:48 +01:00
Ulf Wiger
209ca73b91 rebar_eunit:reset_after_eunit/1 mustn't remove 'included_applications'
One could argue that rebar_eunit does some pretty dangerous stuff when
trying to clean up after a test run, but specifically, it tells the
Application Controller to delete everything returned by
application:get_all_env(App). Unfortunately, included_applications
also goes, which can lead to a crash in application_controller, if
the application is subsequently unloaded.

This patch attempts the smallest possible fix: remove all env
variables except included_applications.
2012-12-16 21:30:15 +01:00
Anthony Ramine
22641c07ec Ensure we always have a registered value in .app files
`systools:make_relup/4` fails with `{missing_param, registered}`
without a `registered` value.
2012-12-07 14:43:35 +01:00
Dave Smith
71c717d86b Merge pull request #26 from l4u/patch-1
Support environment vars with unicode characters
2012-12-02 09:52:29 -08:00
Dave Smith
65ed9d9811 Merge pull request #34 from shkumagai/feature/zsh-completion-add-options
Add missing variables
2012-12-02 08:05:39 -08:00
Shoji KUMAGAI
f5a5843d77 Add missing variables
- add overlay_vars=, target_dir=, and tests= with short description
2012-12-03 00:04:07 +09:00
Dave Smith
89e94337ec Merge pull request #33 from tuncer/bash-completion
bash-completion: add missing options and variables
2012-12-01 12:18:53 -08:00
Tuncer Ayaz
dfbba0f4e7 bash-completion: add missing options and variables
- add missing short and long options
- add tests=, target_dir=, overlay_vars=
2012-12-01 15:31:01 +01:00
Dave Smith
40ef11b4c4 Merge pull request #32 from shkumagai/feature/zsh-completion-dump_spec
zsh-completion: add 'dump_spec' back again
2012-11-30 14:56:43 -08:00
Shoji KUMAGAI
da5cbe3b0f zsh-completion: add 'dump_spec' back again 2012-12-01 01:30:48 +09:00
Dave Smith
986158d84a Merge pull request #31 from tuncer/bash-completion-dump_spec
bash-completion: add dump_spec=1
2012-11-30 07:22:21 -08:00
Tuncer Ayaz
1ce06c76fc bash-completion: add dump_spec=1 2012-11-30 16:09:41 +01:00
Dave Smith
870d11a813 Merge pull request #28 from tuncer/fix-escript_emu_args-sample
rebar.config.sample: fix escript_emu_args sample
2012-11-30 06:56:10 -08:00
Tuncer Ayaz
51c577f5bf rebar.config.sample: fix escript_emu_args sample 2012-11-30 15:56:38 +01:00
Dave Smith
e47e03bfce Merge pull request #29 from tuncer/makefile
Makefile: fix 'clean' and add 'distclean'
2012-11-30 06:49:05 -08:00
Dave Smith
f0a2c5e84f Merge pull request #19 from shkumagai/feature/zsh-completion-refine
Change zsh completion script
2012-11-30 06:35:35 -08:00
Dave Smith
e3c028e9ae Merge pull request #20 from tuncer/bash-completion
bash-completion: add generate-appups
2012-11-30 06:33:30 -08:00
Tuncer Ayaz
8e12652aa6 Makefile: fix 'clean' and add 'distclean'
* fix 'clean' to remove .eunit (not .test)
* add 'distclean' to also remove deps/
2012-11-26 13:39:42 +01:00
Tuncer Ayaz
ee97a65c14 bash-completion: add generate-appups 2012-11-26 13:39:36 +01:00
Dave Smith
5079bd5949 Merge pull request #30 from DeadZen/master
Update THANKS: use my real name
2012-11-25 06:43:27 -08:00
DeadZen
5ebc29c21e Update THANKS 2012-11-24 12:06:00 -05:00
Dave Smith
329eba4e52 Merge pull request #13 from tuncer/fixes
Fixes
2012-11-23 07:19:32 -08:00
Dave Smith
7325784fb0 Merge pull request #27 from norton/norton-qc-clean
Add missing clean/2
2012-11-23 07:17:48 -08:00
Joseph Wayne Norton
7d624e9018 Add missing rebar_qc:clean/2 2012-11-23 22:14:56 +09:00
José Valim
61c353dcfd Support environment vars with unicode characters
The results returned by os:getenv() may contain unicode characters.
That said, we need to explicitly allow unicode when splitting the
environment information, otherwise badarg will be raised causing all
rebar commands to fail until the environment variable is removed.
2012-11-22 01:30:49 +08:00
Magnus Henoch
e4083cacee Run eunit suites in the order specified in the 'suites' command line parameter
Normally, Rebar runs eunit tests in the order the beam files are
stored in the file system (see rebar_utils:beams).  However, sometimes
it is desirable to run the tests in a different order (e.g. to
reproduce an error found on a build server).  For that case, it would
make sense to use the 'suites' parameter not just for selecting which
modules to consider, but also for choosing the order.
2012-11-20 15:50:00 +00:00
Tuncer Ayaz
e86ec457b6 rebar.config.sample: remove non-existing option 2012-11-20 00:23:24 +01:00
Tuncer Ayaz
a6617bdaff rebar.config.sample: document escriptize options 2012-11-19 23:42:07 +01:00
Tuncer Ayaz
e74a0feb05 rebar.config: delete unused and unimplemented 'app_bin' option
app_bin option was used by the install command which has been
removed in 51ed787.
2012-11-19 00:16:34 +01:00
Tuncer Ayaz
06dbb4cb80 Document escriptize command 2012-11-19 00:01:59 +01:00
Tuncer Ayaz
abb319d10a rebar_ct: fix wording in comments 2012-11-18 23:36:59 +01:00
Tuncer Ayaz
39728242f0 rebar.config.sample: document leex and yecc options 2012-11-18 19:50:54 +01:00
Tuncer Ayaz
0d5583db5a rebar_require_vsn: remove trailing whitespace 2012-11-18 19:36:59 +01:00
Tuncer Ayaz
3ee2a4a6d0 rebar.config.sample: document require_*_vsn options 2012-11-18 19:36:01 +01:00
Tuncer Ayaz
ed55df9648 rebar_neotoma_compiler: fix comment 2012-11-18 18:57:55 +01:00
Shoji KUMAGAI
0bb1416479 Change zsh completion script
- Add 'escriptize' command
- Remove variable 'dump_spec'
2012-11-16 14:52:34 +09:00