Skip to content

Commit 25a9642

Browse files
committed
Rename sys.config to sys.config.orig
The purpose of this change is twofold. Firstly, this makes sure that the user chooses an appropriate configuration. Secondly, this separates the configuration file currently used from the one in version control, removing the risk that temporary local changes get committed unintentionally. This closes #242.
1 parent 0d88e21 commit 25a9642

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/rel/linc/
2+
# sys.config.orig is version controlled; sys.config is installation specific.
3+
/rel/files/sys.config
24
/apps/*/ebin/
35
/apps/*/.eunit/
46
/apps/*/doc/

rel/rebar.config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
%% -*- erlang -*-
2+
{pre_hooks,
3+
[{generate,
4+
"sh -c 'test -f files/sys.config || (echo "
5+
"\"The configuration file rel/files/sys.config does not exist.\n"
6+
"You can create it in two ways:\n"
7+
"\n"
8+
"1. Either run scripts/config_gen with appropriate arguments\n"
9+
" and save its output in rel/files/sys.config,\n"
10+
"\n"
11+
"2. Or copy rel/files/sys.config.orig to rel/files/sys.config\n"
12+
" and edit it by hand to fit your setup.\n"
13+
"\n"
14+
"Then run \\\"make rel\\\" again.\n\"; exit 1)'"
15+
}]}.

0 commit comments

Comments
 (0)