Skip to content
Various scripts and tools for the everyday developer!
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This repository contains useful scripts related to development and Erlang in particular.


Counts the number of executable lines of code (ELOC) in Erlang files. It can be used for other languages as well, but the comment character (%) is hard coded for now.


eloc <files>


meck$ eloc
ELOC   comments file
----   -------- ----
301    110      src/meck.erl
6      0        test/meck_test_module.erl
7      0        test/meck_tests.hrl
293    24       test/meck_tests.erl
9      15       util/make_doc.erl
84     16       util/run_test.erl

700    165      total


This python script switches a symlinked bin folder based on which Erlang version you want to run.


erlang <version>


$ erlang r14
Switched to version R14B01
$ erlang r13
Switched to version R13B04
$ erl
Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)

It requires the environment variable ERLANG_DIR to be set. It should contain folders for each Erlang version (e.g. r13b04, r14b01 etc). Each of those folders should have a 'bin' folder inside. This bin folder is then symlinked into the ERLANG_DIR directory. Add this bin directory to your path.

The parameter you supply on the command line should be a prefix (or whole) of any of the directories in the ERLANG_DIR. The newest Erlang version will be used unless specified.

Something went wrong with that request. Please try again.