summaryrefslogtreecommitdiff
path: root/rebar.config.sample
diff options
context:
space:
mode:
Diffstat (limited to 'rebar.config.sample')
-rw-r--r--rebar.config.sample36
1 files changed, 13 insertions, 23 deletions
diff --git a/rebar.config.sample b/rebar.config.sample
index 184c16d..50ddc17 100644
--- a/rebar.config.sample
+++ b/rebar.config.sample
@@ -8,18 +8,6 @@
%% Additional library directories to add to the code path
{lib_dirs, []}.
-%% Command to run before compiling
-{compile_pre_script, "./script.sh"}.
-
-%% Command to run after compiling
-{compile_post_script, "./script.sh"}.
-
-%% Command to run before cleaning
-{clean_pre_script, "./script.sh"}.
-
-%% Command to run after cleaning
-{clean_post_script, "./script.sh"}.
-
%% == Erlang Compiler ==
%% Erlang files to compile before the rest. Rebar automatically compiles
@@ -54,14 +42,6 @@
%% more info. Default is `[]'
{port_envs, []}.
-%% Tuple which specifies a pre-compilation script to run, and a filename that
-%% exists as a result of the script running.
-{port_pre_script, {"script.sh", "skipfile"}}.
-
-%% String that specifies a script to run during cleanup. Use this to remove
-%% files/directories created by port_pre_script.
-{port_cleanup_script, "cleanup.sh"}.
-
%% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'.
{so_name, "driver.so"}.
@@ -121,7 +101,7 @@
%% Enable validation of the OTP app module list. Default is 'true'
{validate_app_modules, true}.
-%% == Dependancies ==
+%% == Dependencies ==
%% Where to put any downloaded depandencies. Default is `deps'
{deps_dir, ["deps"]}.
@@ -129,12 +109,22 @@
%% What dependancies we have, depandencies can be of 3 forms, an application
%% name as an atom, eg. mochiweb, a name and a version (from the .app file), or
%% an application name, a version and the SCM details on how to fetch it (SCM
-%% type, location and revision). Rebar currently support git, hg, bzr and svn.
+%% type, location and revision). Rebar currently supports git, hg, bzr and svn.
{deps, [application_name,
{application_name, "1.0.*"},
- {application_name, "1.0.*", {hg, "http://bitbucket.org/basho/rebar/", "f3626d5858a6"}}]}.
+ {application_name, "1.0.*",
+ {git, "git://github.com/basho/rebar.git", {branch, "master"}}}]}.
%% == Subdirectories ==
%% Subdirectories?
{sub_dirs, ["dir1", "dir2"]}.
+
+%% == Pre/Post Command Hooks ==
+
+{pre_hooks, [{clean, "./prepare_package_files.sh"},
+ {compile, "escript generate_headers"}]}.
+
+{post_hooks, [{clean, "touch file1.out"},
+ {eunit, "touch file2.out"},
+ {compile, "touch postcompile.out"}]}.