This repository has been archived by the owner on Sep 21, 2023. It is now read-only.
forked from brendonh/erl_openid
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up a bit and make erl_openid more OTP compliant
- add .app file - use application and supervisor behaviours - move header file to include/ - use erl -make to build - request global name for openid_srv
- Loading branch information
Showing
9 changed files
with
99 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*~ | ||
*.beam | ||
*.pyc | ||
Mnesia.* | ||
sasl_err* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ './src/*', [ | ||
{ i, "./include" }, | ||
{ outdir, "./ebin" }, | ||
debug_info | ||
]}. | ||
|
||
{ './src/*/*', [ | ||
{ i, "./include" }, | ||
{ outdir, "./ebin" }, | ||
debug_info | ||
]}. | ||
|
||
{ './src/*/*/*', [ | ||
{ i, "./include" }, | ||
{ outdir, "./ebin" }, | ||
debug_info | ||
]}. | ||
|
||
{ '*', [ | ||
debug_info | ||
]}. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,18 @@ | ||
SRC_DIR = src | ||
EBIN_DIR = ebin | ||
INCLUDE_DIR = include | ||
|
||
SOURCES = $(wildcard $(SRC_DIR)/*.erl) | ||
INCLUDES = $(wildcard $(INCLUDE_DIR)/*.hrl) | ||
TARGETS = $(patsubst $(SRC_DIR)/%.erl, $(EBIN_DIR)/%.beam,$(SOURCES)) | ||
all: build | ||
|
||
ERL_EBINS = -pa $(EBIN_DIR) | ||
|
||
ERLC = erlc | ||
ERLC_OPTS = -o $(EBIN_DIR) -Wall -v +debug_info | ||
|
||
ERL_CMD=erl \ | ||
+W w \ | ||
$(ERL_EBINS) | ||
|
||
all: $(TARGETS) | ||
build: | ||
erl -make | ||
|
||
run_prereqs: all | ||
|
||
test: run_prereqs | ||
$(ERL_CMD) -noshell -pa ../mochiweb/ebin -s openid_srv test -s init stop | ||
|
||
clean: cleanlog | ||
rm -f $(TARGETS) | ||
rm -f $(EBIN_DIR)/*.beam | ||
rm -f ebin/*.beam | ||
|
||
cleanlog: | ||
rm -f auth.log report.log sasl_err.log | ||
rm -f *.access | ||
|
||
$(EBIN_DIR)/%.beam: $(SRC_DIR)/%.erl $(INCLUDES) | ||
$(ERLC) $(ERLC_OPTS) $< |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{application, erl_openid, [ | ||
{description, "Erlang OpenId Library"}, | ||
{vsn, "0.1"}, | ||
{registered, []}, | ||
{modules, [ | ||
openid, | ||
openid_srv, | ||
openid_utils, | ||
yadis | ||
]}, | ||
{mod, {openid, []}}, | ||
{applications, [kernel, stdlib, ssl]} | ||
]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters