Skip to content

Commit 576189b

Browse files
author
Szymon Mentel
committed
Merge pull request #243 from legoscia/no-default-sys-config
Rename sys.config to sys.config.orig
2 parents ada954a + 25a9642 commit 576189b

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/
File renamed without changes.

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)