-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated README with installation instructions for epm and rebar users.
- Loading branch information
1 parent
3a57ddf
commit c41f133
Showing
1 changed file
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,59 @@ | ||
## gen_server2 - a copy of LSHIFT's gen_server modifications | ||
gen_server2 - a copy of LSHIFT's gen_server modifications | ||
========================================================= | ||
|
||
_gen_server2_ is a modified version of OTP's gen_server behaviour. | ||
This repository is hosted so people don't have to keep copying the | ||
gen_server2 source file into their projects, which is pointless unless | ||
you're planning on making modifications of your own. | ||
|
||
Installation | ||
------------ | ||
|
||
Using [epm](https://github.com/JacobVorreuter/epm), you can install in the following manner: | ||
|
||
t4@malachi:~ $ epm install hyperthunk/gen_server2 | ||
epm v0.1.1, 2010 | ||
|
||
=============================== | ||
Install the following packages? | ||
=============================== | ||
+ hyperthunk-gen_server2-master | ||
|
||
([y]/n) y | ||
|
||
+ downloading https://github.com/hyperthunk/gen_server2/tarball/master | ||
+ compiling with rebar... | ||
+ running gen_server2 build command | ||
+ running gen_server2 install command | ||
|
||
t4@malachi:~ $ erl | ||
Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] | ||
|
||
Eshell V5.7.5 (abort with ^G) | ||
1> code:which(gen_server2). | ||
"/Users/t4/Library/Erlang/Site/gen_server2-1.0.0/ebin/gen_server2.beam" | ||
2> | ||
|
||
If you're using [rebar](https://github.com/basho/rebar) as your build tool, then you can include this in your dependencies to have | ||
it pulled down automatically: | ||
|
||
%% file: rebar.config | ||
{deps, [ | ||
{gen_server2, "1.0.0", {git, "https://github.com/hyperthunk/gen_server2.git", "master"}} | ||
]}. | ||
|
||
And pull it with get/check-deps: | ||
|
||
t4@malachi:plumber $ rebar get-deps | ||
==> plumber (get-deps) | ||
Pulling gen_server2 from {git,"https://github.com/hyperthunk/gen_server2.git", | ||
"master"} | ||
Initialized empty Git repository in /Users/t4/work/mine/plumber/deps/gen_server2/.git/ | ||
Already on 'master' | ||
==> gen_server2 (get-deps) | ||
t4@malachi:plumber $ rebar check-deps | ||
==> gen_server2 (check-deps) | ||
==> plumber (check-deps) | ||
t4@malachi:plumber $ | ||
|
||
|