diff options
author | Linus Nordberg <linus@nordu.net> | 2017-09-05 15:17:57 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-09-05 15:17:57 +0200 |
commit | 6bd61a28df23ac00d436dde3e087f4e676674ed7 (patch) | |
tree | 23664d34d01f2b8b4f0792d58937830b1f0ed439 /version.erl | |
parent | a5abe80eca5645e2f94ae23e2b975608993217a3 (diff) |
Add 'dist' target.
Diffstat (limited to 'version.erl')
-rwxr-xr-x | version.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/version.erl b/version.erl new file mode 100755 index 0000000..6e3c37e --- /dev/null +++ b/version.erl @@ -0,0 +1,8 @@ +#!/usr/bin/env escript +%% -*- erlang -*- + +main(_) -> + case file:consult("ebin/catlfish.app") of + {ok, [{application, catlfish, PropList}]} -> + io:format("~s~n", [proplists:get_value(vsn, PropList)]) + end. |