Commits

Anonymous committed d5677f4

small refinement and add install step in the makefile

  • Participants
  • Parent commits 084bdb8

Comments (0)

Files changed (2)

 	mkdir -p ebin/
 	(cd test;$(MAKE) test)
 
-# install: all
-#   mkdir -p ${LIBDIR}/protobuffs-0.1/{ebin,include}
-#   for i in ebin/*.beam; do install $$i $(LIBDIR)/protobuffs-0.1/$$i ; done
+install: all
+	mkdir -p ${LIBDIR}/erldis-0.0.1/{ebin,include}
+	for i in ebin/*.beam; do install $$i $(LIBDIR)/erldis-0.0.1/$$i ; done
+	for i in include/*.hrl; do install $$i $(LIBDIR)/erldis-0.0.1/$$i ; done

File src/erldis.erl

 -compile(export_all).
 -define(EOL, "\r\n").
 
+
+%% Helpers
 str(X) when is_list(X) ->
     X;
 str(X) when is_binary(X) ->
     format([Line], []).
 
 
+
+%% exposed API
 connect(Host) ->
     client:connect(Host).
 
     client:asend(Client, "QUIT"),
     client:disconnect(Client).
 
+
+%% Commands operating on string values
 internal_set_like(Client, Command, Key, Value) ->
     ValueStr = str(Value),
     client:send(Client,
         ])
     ).
 
-%% Commands operating on string values - TODO: GET
 set(Client, Key, Value) ->
     internal_set_like(Client, "SET", Key, Value).
 setnx(Client, Key, Value) ->