Permalink
Browse files

Added existing files

  • Loading branch information...
mmzeeman committed Sep 4, 2011
1 parent ca56abb commit 3201f3c6afa5853225ddf00cdbed71fde4eaf749
View
@@ -0,0 +1,5 @@
+all:
+ $(MAKE) -C deps/egeoip
+
+clean:
+ $(MAKE) -C deps/egeoip clean
View
@@ -0,0 +1,9 @@
+This is the MIT license.
+
+Copyright (c) 2006 Bob Ippolito.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,20 @@
+all: ebin/
+ (cd src;$(MAKE) all)
+
+edoc:
+ (cd src;$(MAKE) edoc)
+
+test: ebin/
+ (cd src;$(MAKE) test)
+
+clean:
+ (cd src;$(MAKE) clean)
+
+clean_plt:
+ (cd src;$(MAKE) clean_plt)
+
+dialyzer:
+ (cd src;$(MAKE) dialyzer)
+
+ebin/:
+ @mkdir -p ebin
View
@@ -0,0 +1 @@
+egeoip is a pure Erlang library for dealing with MaxMind Geolocation databases.
View
@@ -0,0 +1,36 @@
+include ../support/include.mk
+
+APPLICATION=egeoip
+DOC_OPTS={dir,\"../doc\"}
+TEST_PLT=$(TEST_DIR)/dialyzer_plt
+
+all: $(EBIN_FILES)
+
+debug:
+ $(MAKE) DEBUG=-DDEBUG
+
+clean:
+ rm -rf $(EBIN_FILES)
+
+edoc:
+ $(ERL) -noshell -pa ../ebin \
+ -eval "edoc:application($(APPLICATION), \".\", [$(DOC_OPTS)])" \
+ -s init stop
+
+test: $(EBIN_FILES)
+ mkdir -p $(TEST_DIR);
+ @../support/run_tests.escript $(EBIN_DIR) | tee $(TEST_DIR)/test.log
+
+$(TEST_PLT):
+ mkdir -p $(TEST_DIR)
+ cp $(DIALYZER_PLT) $(TEST_PLT)
+ dialyzer --plt $(TEST_PLT) --add_to_plt
+
+clean_plt:
+ rm $(TEST_PLT)
+
+dialyzer: $(TEST_PLT)
+ dialyzer --src --plt $(TEST_PLT) -DNOTEST -DDIALYZER -c ../src | tee $(TEST_DIR)/dialyzer.log
+
+egeoip_tz.erl: timezone.txt ../support/make_tz.py
+ ../support/make_tz.py < timezone.txt > egeoip_tz.erl
@@ -0,0 +1,8 @@
+{application,egeoip,
+ [{description,"geolocation by IP"},
+ {vsn,"1.0"},
+ {modules,[]},
+ {registered, []},
+ {env, [{dbfile, city}]},
+ {mod, {egeoip_app, []}},
+ {applications,[kernel,stdlib]}]}.
Oops, something went wrong.

0 comments on commit 3201f3c

Please sign in to comment.