Skip to content

Commit

Permalink
Merge pull request #13 from metadave/dp_manpages
Browse files Browse the repository at this point in the history
build and install docs
  • Loading branch information
bookshelfdave committed Sep 8, 2014
2 parents 6eb49d7 + 850e07b commit 520bfb2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ erln8 - an Erlang version manager

## What is it?

erln8 (erl-in-ate) allows you to compile and manage multiple versions of Erlang from source. Instead of downloading individual source packages, it downloads the Github OTP mirror so you are essentially downloading all available versions at once :-) Additionaly, you can add your own git repos to support custom OTP patches etc.
erln8 (erl-in-ate) allows you to compile and manage multiple versions of Erlang from source. Instead of downloading individual source packages, it downloads the Github OTP mirror so you are essentially downloading all available versions at once. Additionaly, you can add your own git repos to support custom OTP patches etc.

The cool thing about erln8 is that you only need to add it to your PATH to use it. No funny environment tweaking ;-) It works by reading an `erln8.config` config file out of the ***current directory***, or by ***searching up the directory tree until it finds one.*** This allows you to "set a version of Erlang to use for a project and forget it".

Expand Down
10 changes: 8 additions & 2 deletions erln8.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ static gchar* step[] = {
"[2] configure ",
"[3] make ",
"[4] make install ",
"[5] make install-docs ",
(gchar*)0
};

static int step_count = 5;
static int step_count = 6;

gchar* red() {
return opt_color == TRUE ? ANSI_COLOR_RED : "";
Expand Down Expand Up @@ -1016,14 +1017,19 @@ void build_erlang(gchar* repo, gchar* tag, gchar* id, gchar* build_config) {
NULL);
gchar* buildcmd3 = g_strconcat(env, " cd ", tmp,
" && make >> ", log_path, " 2>&1", NULL);

gchar* buildcmd4 = g_strconcat(env, " cd ", tmp,
" && make install >> ", log_path, " 2>&1", NULL);
" && make install >> ", log_path, " 2>&1", NULL);

gchar* buildcmd5 = g_strconcat(env, " cd ", tmp,
" && make install-docs >> ", log_path, " 2>&1", NULL);
gchar* build_cmds[] = {
buildcmd0,
buildcmd1,
buildcmd2,
buildcmd3,
buildcmd4,
buildcmd5,
NULL
};
int result = 0;
Expand Down

0 comments on commit 520bfb2

Please sign in to comment.