From 850e07bed33aff6175ff9e961f59080633f095c5 Mon Sep 17 00:00:00 2001 From: Dave Parfitt Date: Sun, 7 Sep 2014 22:17:13 -0400 Subject: [PATCH] build and install docs --- README.md | 2 +- erln8.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4cec440..8287aac 100644 --- a/README.md +++ b/README.md @@ -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". diff --git a/erln8.c b/erln8.c index 2b14ee8..391b80e 100644 --- a/erln8.c +++ b/erln8.c @@ -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 : ""; @@ -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;