Skip to content

Commit

Permalink
Merge pull request #243 from legoscia/no-default-sys-config
Browse files Browse the repository at this point in the history
Rename sys.config to sys.config.orig
  • Loading branch information
Szymon Mentel committed Nov 20, 2013
2 parents ada954a + 25a9642 commit 576189b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/rel/linc/
# sys.config.orig is version controlled; sys.config is installation specific.
/rel/files/sys.config
/apps/*/ebin/
/apps/*/.eunit/
/apps/*/doc/
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions rel/rebar.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%% -*- erlang -*-
{pre_hooks,
[{generate,
"sh -c 'test -f files/sys.config || (echo "
"\"The configuration file rel/files/sys.config does not exist.\n"
"You can create it in two ways:\n"
"\n"
"1. Either run scripts/config_gen with appropriate arguments\n"
" and save its output in rel/files/sys.config,\n"
"\n"
"2. Or copy rel/files/sys.config.orig to rel/files/sys.config\n"
" and edit it by hand to fit your setup.\n"
"\n"
"Then run \\\"make rel\\\" again.\n\"; exit 1)'"
}]}.

0 comments on commit 576189b

Please sign in to comment.