Permalink
Browse files

removing unnecessary files

  • Loading branch information...
1 parent ea8df45 commit d8e5d0a2b328e6131aa188341c8e58a066971b47 @jkvor committed Apr 2, 2010
Showing with 17 additions and 93 deletions.
  1. +0 −1 .gitignore
  2. +2 −19 Makefile
  3. +1 −2 README.markdown
  4. +0 −48 build_rel.escript
  5. +14 −0 ebin/emongo.app
  6. +0 −17 ebin/emongo.app.in
  7. +0 −6 emongo.epm
View
@@ -1,2 +1 @@
ebin/*.beam
-ebin/*.app
View
@@ -1,27 +1,10 @@
-VERSION=0.0.1
-PKGNAME=emongo
-LIBDIR=`erl -eval 'io:format("~s~n", [code:lib_dir()])' -s init stop -noshell`
-
all: emake
-emake: app
+emake:
erl -make
-app:
- sh ebin/$(PKGNAME).app.in $(VERSION)
-
-release: emake release/$(PKGNAME).tar.gz
-
-release/$(PKGNAME).rel release/$(PKGNAME).script release/$(PKGNAME).tar.gz: app
- mkdir -p release
- escript build_rel.escript $(PKGNAME)
-
test: emake
prove t/*.t
clean:
- rm -rf $(wildcard ebin/*.beam) erl_crash.dump *.boot *.rel *.script ebin/*.app release
-
-install:
- @mkdir -p $(prefix)/$(LIBDIR)/$(PKGNAME)-$(VERSION)/{ebin,include}
- for i in ebin/*.beam include/*.hrl ebin/*.app; do install $$i $(prefix)/$(LIBDIR)/$(PKGNAME)-$(VERSION)/$$i ; done
+ rm -rf $(wildcard ebin/*.beam) erl_crash.dump
View
@@ -1,9 +1,8 @@
#### The goal of emongo is to be stable, fast and easy to use.
-## Compile and install
+## Build
make
- sudo make install
## Start emongo
View
@@ -1,48 +0,0 @@
-#!/usr/bin/env escript
-%% -*- erlang -*-
-
-main([AppName]) ->
- {ok, [{application,_,AppProps}]} = file:consult("ebin/" ++ AppName ++ ".app"),
- AppDeps = proplists:get_value(applications, AppProps, []),
- AppVsn = proplists:get_value(vsn, AppProps),
- {ok, FD} = file:open("release/" ++ AppName ++ ".rel", [write]),
- RelInfo = {release,
- {AppName, AppVsn},
- {erts, erts_vsn()},
- [{Pkg, lib_vsn(Pkg)} || Pkg <- AppDeps]
- },
- io:format(FD, "~p.", [RelInfo]),
- file:close(FD),
- systools:make_script("release/" ++ AppName, [{exref, AppDeps}, {outdir, "release"}]),
- systools:make_tar("release/" ++ AppName, [{dirs, tar_dirs()}, {outdir, "release"}]),
- ok.
-
-erts_vsn() ->
- erlang:system_info(version).
-
-lib_vsn(App) ->
- load(App),
- {ok, Vsn} = application:get_key(App, vsn),
- Vsn.
-
-load(App) ->
- case application:load(App) of
- ok ->
- ok;
- {error, {already_loaded, _}} ->
- ok;
- E ->
- io:format(standard_error, "Warning - can't load ~p (~p)~n", [App, E]),
- erlang:exit(E)
- end.
-
-tar_dirs() ->
- {ok, Files} = file:list_dir("."),
- [list_to_atom(Dir) || Dir <- lists:filter(
- fun ("." ++ _) -> false;
- (File) ->
- filelib:is_dir(File) andalso not lists:member(File, ["ebin", "include", "t"])
- end, Files)].
-
-
-
View
@@ -0,0 +1,14 @@
+{application, emongo, [
+ {description, "Erlang MongoDB Driver"},
+ {vsn, "0.2"},
+ {modules, [
+ emongo,
+ emongo_app,
+ emongo_bson,
+ emongo_conn,
+ emongo_packet
+ ]},
+ {registered, []},
+ {mod, {emongo_app, []}},
+ {applications, [kernel, stdlib, sasl]}
+]}.
View
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-VERSION=${1}
-MODULES=`ls -1 src/*.erl | awk -F[/.] '{ print "\t\t" $2 }' | sed '$q;s/$/,/g'`
-
-cat > ebin/emongo.app << EOF
-{application, emongo, [
- {description, "Erlang MongoDB Driver"},
- {vsn, "${VERSION}"},
- {modules, [
-${MODULES}
- ]},
- {registered, []},
- {mod, {emongo_app, []}},
- {applications, [kernel, stdlib]}
-]}.
-EOF
View
@@ -1,6 +0,0 @@
-[
- {deps, [
- {"etap", []}
- ]},
- {test_command, "make test"}
-].

0 comments on commit d8e5d0a

Please sign in to comment.