Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add Makefile to install beams to correct location

  • Loading branch information...
commit 445acf18745fad6bc7eeb2537c6c300b53e82982 1 parent 2c28c56
@RJ authored
Showing with 22 additions and 0 deletions.
  1. +16 −0 Makefile
  2. +6 −0 README.markdown
View
16 Makefile
@@ -0,0 +1,16 @@
+SHELL := /bin/bash
+P := $(shell erl -noshell -eval 'io:format("~s/ebin~n",[code:lib_dir(kernel)]),init:stop().')
+
+all: compile
+
+compile:
+ erl -make
+
+install: compile
+ @echo "Backing up existing file"
+ sudo mv -n "$P/group.beam" "$P/group.beam.backup-pre-shell-history"
+ @echo "Installing.."
+ sudo cp ebin/*.beam "$P"
+
+clean:
+ rm ebin/*.beam
View
6 README.markdown
@@ -6,6 +6,12 @@ The history supported is the one available through up/down arrows on the keyboar
## How to install ##
+Automatically:
+
+ `$ make install`
+
+Manually:
+
1. Compile the two files (`erl -make`).
2. Take the `.beam` files in `ebin/` and move them to `$ROOT/lib/kernel-$VSN/ebin/` for the OTP release of your choice.
3. Start the Erlang shell associated with this version of the Erlang/OTP kernel to gain shell history.
Please sign in to comment.
Something went wrong with that request. Please try again.