Commit graph

156 commits

Author SHA1 Message Date
Yurin Slava
cd1cc6dbee simplenode.runner: properly quote arguments
bin/<release_name> console -kernel test '[{"a","b"}]' fails, because
when $@ is inserted into CMD [{"a","b"}] is interpreted.
Fix the same issue for 'start' command and quote all arguments.
2012-04-04 17:08:04 +02:00
Adam Schepis
03a026f38f Add support for alternate dependency urls
This change adds the ability to use alternate urls for downloading
dependencies. To make use of alternate urls run:
rebar get-deps alt_urls=true
2012-03-31 19:21:25 +02:00
Tuncer Ayaz
769160ac36 Remove export_all in simplemod template 2012-03-25 11:17:42 +02:00
Fisher
dfb973b8b8 Fix handle_call response 2012-02-02 10:35:13 +01:00
Tuncer Ayaz
36b6b7a393 Fix order in erts exclusion filter 2012-01-20 17:30:50 +01:00
Tuncer Ayaz
8ce8affa11 Add nodeid= to bash completion 2012-01-20 17:26:52 +01:00
Tuncer Ayaz
878dc8ccf7 Simplify excl_sys_filters 2012-01-20 17:26:49 +01:00
Matt Campbell
816d1805d5 Set node name correctly on erlsrv commandline 2012-01-09 12:33:39 +01:00
Magnus Klaar
4db90bafef Deprecate ct suite= option for suites= option 2012-01-06 20:40:46 +01:00
Tuncer Ayaz
b594d356e1 Fix basic_nif on_load() 2012-01-05 22:41:37 +01:00
Tuncer Ayaz
e4c427be21 Comment out vm args 2011-12-21 16:02:21 +01:00
Tuncer Ayaz
0bdda5baa1 Trim reltool config and add nodeid to release 2011-12-20 22:20:18 +01:00
Tuncer Ayaz
8c89a388bf Universally support apps=/skip_apps= 2011-12-12 21:20:34 +01:00
Tuncer Ayaz
d228e94137 Add root_dir= to shell completion 2011-11-26 12:09:39 +01:00
Tuncer Ayaz
285ca0f6be Add overlay command to shell completion 2011-10-20 20:56:34 +02:00
Matt Campbell
36fe2c460c Don't run erl_args through set_trim
Args provided by erlsrv.exe were being mostly
discarded due to being processed through set_trim
2011-10-20 16:26:28 +02:00
Mistagrooves
8549db72d4 @ characters before elses were causing the script to not run 2011-09-26 10:37:23 -04:00
Steven Gravell
fbd26143bb fix vm.args checks by always using $VMARGS_PATH 2011-09-21 16:09:56 +01:00
Matt Campbell
9bf31b7389 Update Windows runner script usage blurb 2011-09-20 19:45:52 +02:00
joewilliams
cb5056b2e3 Get rid of app.config
app.config has been a long standing erroneous file in rebar. Erlang/OTP
documentation suggests a sys.config file instead. This file is stored in
the releases/VSN directory. This does a few things but most importantly
it ensures your config (contained in the application environment)
survives a hot upgrade. It also has the advantage of allowing the
configuration of the application to be versioned along side the
application code. This patch flips rebar to use sys.config rather than
app.config.

Additionally it makes this flip to vm.args as well, making them
versioned just like sys.config.

This patch also includes runner script changes to support the old
etc/app.config config file location and support for Windows.

Thanks to mokele for the initial work and kick in the pants to make this
finially happen.
2011-09-20 09:44:41 -07:00
Matt Campbell
5998c6c721 Add console command to windows runner script 2011-09-20 17:26:39 +02:00
Ben
9abc294947 Clean up windows batch scripts 2011-09-01 20:31:50 +02:00
Matt Campbell
a58f2c91e3 Add simple Windows batch scripts to node templates 2011-09-01 20:23:54 +02:00
Tuncer Ayaz
112f74cac1 Adapt basicnif template to OTP changes 2011-07-19 17:37:48 +02:00
Tuncer Ayaz
734d30f96e Modernize basicnif template code 2011-07-17 18:38:33 +02:00
Tuncer Ayaz
4e0ab4065f Fix grep portability (Reported-by: Andrew Thompson) 2011-07-14 13:03:54 +02:00
Tuncer Ayaz
12b26fab32 Change shebang lines to /bin/sh 2011-07-13 18:00:52 +02:00
Andrew Thompson
6749bb6ac0 Propagate exit status from nodetool to runner script 2011-07-13 17:59:49 +02:00
Tuncer Ayaz
c63002bef8 Whitespace cleanups 2011-07-13 17:59:07 +02:00
Andrew Gopienko
a8de2e91ba fix erlexec parameter 2011-07-05 12:47:25 +07:00
Tuncer Ayaz
013a49a941 Add list-deps to completion and abbrev-cmds 2011-06-10 17:20:49 +02:00
Tuncer Ayaz
ca3368a6b4 Remove leftover references to rebar_dialyzer 2011-06-07 01:11:32 +02:00
Tuncer Ayaz
3440d8183b Exact match name, cookie (reported-by Pablo Platt) 2011-06-04 10:33:30 +02:00
Tuncer Ayaz
eba2f097bf Fix formatting (thanks Piotr Usewicz) 2011-04-15 17:22:55 +02:00
Piotr Usewicz
df4e836c4e Add file local variables where appropriate 2011-04-15 17:22:49 +02:00
Tuncer Ayaz
16a7561d93 Add skip_app to shell completion 2011-04-06 18:57:37 +02:00
Tuncer Ayaz
be209f24ff Make debug_info default
Add no_debug_info option.
Remove debug_info=1 option.
2011-03-30 11:19:37 +02:00
Alexey Romanov
9da87854f2 Support passing plain arguments to appname start
Currently with default simplenode template, `appname console other_args`
will pass ["console", "other_args"] as plain arguments. But
`appname start other_args` effectively calls `appname console`. This
patch replaces this call with `appname console other_args`.
2011-03-05 14:27:07 +03:00
Alexey Romanov
76a0fdffa7 Remove rejected commit 2011-03-05 14:16:41 +03:00
Alexey Romanov
48d23b90ac Add console_clean to usage message for simplenode. 2011-02-21 12:57:24 +03:00
Alexey Romanov
35a3391e7b Support passing plain arguments to simplenode.
`init:get_plain_arguments()` returns `["console", "more_args"]` when
started with `$APP_NAME console more_args`, but `["console"]` when
started with `$APP_NAME start more_args`. This patch makes `start`
behave like `console` in this respect.
2011-02-21 12:46:57 +03:00
Tuncer Ayaz
1b10807193 Remove gratuitous spaces 2011-02-15 17:26:01 +01:00
Tim Watson
7810d7bf7c Add common_test suite template
This change adds a simple common_test suite template
that can be instantiated with the name of a module
under test like so:

`rebar create template=ctsuite testmod=mymodule`

The template creates an empty test suite in the test
directory, automatically exports test functions and
sets up a first, skipped test function.
2011-02-15 17:21:56 +01:00
Joseph Wayne Norton
1979da9ee2 Clarify trailing slash for PIPE_DIR
The trailing slash for PIPE_DIR is necessary for
both start and attach operations.
2011-02-15 17:05:38 +01:00
Tuncer Ayaz
c466076ffb Clean up emacs file local variables 2011-01-31 17:55:36 +01:00
Tuncer Ayaz
b894682ba9 Fix bug 294 2011-01-29 15:37:54 +01:00
Tuncer Ayaz
f4070bfad7 Update shell completion: generate-upgrade
Add generate-upgrade and previous_release=.
2011-01-28 19:10:19 +01:00
joewilliams
5298e93a18 Add 'generate-upgrade' command
To support OTP release upgrades I have added support for building
upgrade packages. Support for this is included in the
rebar_upgrade module, specifically generate_upgrade/2. It requires
one variable to be set on the command line 'previous_release' which
is the absolute path or relative path from 'rel/' to the previous
release one is upgrading from. Running an upgrade will create the
needed files, including a relup and result in a tarball containing
the upgrade being written to 'rel/'. When done it cleans up the
temporary files systools created.

Usage:
$ rebar generate-upgrade previous_release=/path/to/old/version

This also includes a dummy application that can be used to test
upgrades as well as an example.

Special thanks to Daniel Reverri, Jesper Louis Andersen and
Richard Jones for comments and patches.
2011-01-27 18:37:39 +01:00
Tuncer Ayaz
ac5948d910 Add file local variables to nodetool escript 2011-01-21 16:13:14 +01:00
Tuncer Ayaz
6ce2beebd0 Synchronize nodetool escript with riak version 2011-01-21 16:12:50 +01:00
Tuncer Ayaz
d8e50e8c2d Implement update-deps and disable auto update 2010-12-17 12:39:50 +01:00
Tuncer Ayaz
57e593a319 Fix possible export VAR=VALUE bashism 2010-12-17 12:39:31 +01:00
Tuncer Ayaz
6304c19180 Revert to using awk instead of cut 2010-12-13 13:07:33 +01:00
Tuncer Ayaz
90c5da8033 Extract column 2 on CYGWIN 2010-12-10 17:17:46 +01:00
Tuncer Ayaz
a6063692b2 Use cut instead of awk to extract 1st column 2010-12-10 17:12:50 +01:00
Tuncer Ayaz
5bb78f619e Change vm process search to include non-smp beam 2010-12-10 17:11:01 +01:00
Tuncer Ayaz
6a7e26e12a Disable printing of column headers in ps calls 2010-12-09 17:35:54 +01:00
Tuncer Ayaz
2ff81e5058 Fix portability of ps invocation 2010-12-07 11:55:34 +01:00
Tuncer Ayaz
2e0eab45cb Fix whitespace error and add file local variables 2010-12-07 00:16:14 +01:00
Tuncer Ayaz
9f5d35991f Fix bashism 2010-12-02 20:13:32 +01:00
Tuncer Ayaz
bb6d07011f Add debug_info=1 to shell completion 2010-11-30 00:24:27 +01:00
Dave Smith
1da8b9ca93 Fix bz://705; make sure to invoke chmod as part of the template 2010-10-27 07:50:27 -06:00
Tuncer Ayaz
2d2aed627f Refactor Dialyzer support to make it more usable 2010-10-25 22:37:18 +02:00
Tuncer Ayaz
3e6f8cac12 Update completion to reflect common_test changes 2010-09-30 13:48:10 +02:00
Tuncer Ayaz
0f486c8cc1 Add list-templates to bash completion 2010-09-16 02:51:50 +02:00
Tuncer Ayaz
a43381fe0b Add template_dir= to bash completion 2010-08-31 12:41:34 +02:00
Tuncer Ayaz
c7863d9419 Remove 'install' from bash completion 2010-08-25 22:32:56 +02:00
Scott Fritchie
89a4fe5012 Bug 640: use net_kernel:hidden_connect_node() for nodetool 2010-08-18 16:49:51 -04:00
Dave Smith
d1124f3040 Updating simplenode template so that it works with refactored overlay support; fixes bugs 347 and 348
--HG--
extra : rebase_source : b8eaa05914a99a7f67fdc83f1e07a92bdcad5dfd
2010-07-06 12:03:20 -06:00
Tuncer Ayaz
52609eaca1 Add doc command and skip_deps option to bash completion 2010-06-30 20:24:22 +02:00
Ryan Tilder
0df95cc7f2 The trailing slash is important enough to put it here directly since when it's
missing from the PIPE_DIR definition above, the application won't start and
doesn't log any thing to the expected locations.
2010-06-23 14:54:36 -07:00
Dave Smith
518d30d7ad Adding simpleapp.app.src 2010-06-22 11:02:54 -06:00
Dave Smith
823dc3065f Updating simpleapp template to use .app.src 2010-06-22 11:01:28 -06:00
Tuncer Ayaz
914e5fbf68 New commands and opts (-V/--version/version/help) 2010-05-03 11:38:27 +02:00
Tuncer Ayaz
1e8916ba87 Document xref command
Also add a sleep after printing so that the io server has
written all output before exiting. It's a work around.
2010-04-15 20:20:20 +02:00
Tuncer Ayaz
3a1d2e433c Add create to shell completion 2010-03-26 19:31:07 +01:00
Tuncer Ayaz
0f494c2a14 Add check-deps to shell completion and commands info 2010-03-26 19:28:01 +01:00
Dave Smith
b2cfdcb34a Adding basic NIF template 2010-03-25 22:32:53 -06:00
Tuncer Ayaz
3dfc7a8486 Add get-deps and delete-deps to commands info and shell completion
Add get-deps and delete-deps to commands info string and
bash completion script.
2010-03-17 01:26:32 +01:00
Tuncer Ayaz
459b312ada Add template variable to bash completion
Add create command's template variable to bash completion.
2010-03-11 01:40:06 +01:00
Tuncer Ayaz
16c5de8aea Add commands option to bash completion
Add -c/--commands option to the bash completion script.
2010-03-08 21:59:28 +01:00
Tuncer Ayaz
56e30351f7 Add install command target= var to bash completion 2010-02-27 00:07:00 +01:00
Dave Smith
51133313a6 Updating template defs to use "template" in lieu of "file" directive 2010-02-14 09:25:53 -07:00
Dave Smith
7bfa2405db Merging w/ http://bitbucket.org/bryan/rebar 2010-02-14 09:24:47 -07:00
Bryan Fink
f6feac493d provide separate 'file' and 'template' directives, instead of one 'file' directive with a boolean Render flag 2010-02-13 14:14:29 -05:00
OJ Reeves
6c359a08cd Added 3 new templates:
- simplefsm - Basic shell of a gen_fsm module
 - simplesrv - Basic shell of a gen_server module
 - simplemod - Basic shell of a module along with an associated test module.
2010-02-03 21:56:30 +10:00
Dave Smith
7cf7481a68 Fixing issue #3; make sure to properly escape simplenode related files. Patch provided by cstar..thanks! 2010-01-26 15:11:22 -07:00
Tuncer Ayaz
d32bd6d4a1 Added appid= to bash-completion 2010-01-16 18:52:25 +01:00
Dave Smith
abeac053e0 Merge mainline 2010-01-10 06:48:08 -07:00
Tuncer Ayaz
ba306ec183 Simplified bash-completion script 2010-01-10 10:38:05 +01:00
Tuncer Ayaz
59bfc5044f Fixed trailing space issue for options ending with an equal sign 2010-01-09 18:24:08 +01:00
Tuncer Ayaz
51b3feabc4 Added check_plt to bash-completion 2010-01-09 14:50:29 +01:00
Dave Smith
c6a0d44afa Fixing some typos in simpleapp template 2010-01-09 06:23:35 -07:00
Tuncer Ayaz
e60a6acc41 Removed redundant create-app 2010-01-09 13:35:09 +01:00
Tuncer Ayaz
1e6d92a3a6 Fixed bash-completion to use --jobs without equal sign and removed comment 2010-01-09 13:31:31 +01:00
Tuncer Ayaz
2ae3fd9aae Added jobs= to bash-completion 2010-01-09 00:43:22 +01:00
Tuncer Ayaz
81fd519100 Added first version of a bash-completion script 2010-01-08 23:47:41 +01:00
Dave Smith
ec4e805898 Adding sketch of functionality for creating a reltool node from template 2010-01-08 12:16:57 -07:00
Dave Smith
1454b4faa6 Add variables def to simpleapp template 2010-01-08 10:52:02 -07:00
Dave Smith
2d9af6cf48 Sketching out templating system 2010-01-07 22:18:55 -07:00