Commits

Anonymous committed f853d22

switch from copying webmachine source to using rebar deps
also make start.sh == start-dev.sh, and remove start-dev.sh

Comments (0)

Files changed (4)

priv/templates/rebar.config

 %%-*- mode: erlang -*-
-{sub_dirs, ["apps/mochiweb",
-            "apps/webmachine"]}.
-{lib_dirs, ["apps"]}.
+{sub_dirs, ["deps/webmachine"]}.
+{lib_dirs, ["deps", "deps/webmachine/deps"]}.
+{deps, [{webmachine, "1\\.5", {hg, "http://hg.basho.com/webmachine", "tip"}}]}.
+

priv/templates/start-dev.sh

-#!/bin/sh
-cd `dirname $0`
-exec erl -pa $PWD/ebin $PWD/apps/*/ebin -boot start_sasl -s reloader -s {{appid}}

priv/templates/start.sh

 #!/bin/sh
 cd `dirname $0`
-exec erl -pa $PWD/ebin $PWD/apps/*/ebin -boot start_sasl -s {{appid}}
+exec erl -pa $PWD/ebin $PWD/deps/webmachine/ebin $PWD/deps/webmachine/deps/mochiweb/ebin -boot start_sasl -s reloader -s {{appid}}

priv/templates/wmskel.template

 {chmod, 8#744, "{{prefix}}/rebar"}.
 {template, "start.sh", "{{prefix}}/start.sh"}.
 {chmod, 8#744, "{{prefix}}/start.sh"}.
-{template, "start-dev.sh", "{{prefix}}/start-dev.sh"}.
-{chmod, 8#744, "{{prefix}}/start-dev.sh"}.
 
 {template, "ebin/wmskel.app", "{{prefix}}/ebin/{{appid}}.app"}.
 
 {dir, "{{prefix}}/priv/www"}.
 
 %% dependencies
-{dir, "{{prefix}}/apps"}.
-
-%% Webmachine
-{file, "{{webmachine}}/ebin/webmachine.app",
-       "{{prefix}}/apps/webmachine/ebin/webmachine.app"}.
-
-{file, "{{webmachine}}/include/webmachine.hrl",
-       "{{prefix}}/apps/webmachine/include/webmachine.hrl"}.
-{file, "{{webmachine}}/include/wm_reqdata.hrl",
-       "{{prefix}}/apps/webmachine/include/wm_reqdata.hrl"}.
-{file, "{{webmachine}}/include/wm_reqstate.hrl",
-       "{{prefix}}/apps/webmachine/include/wm_reqstate.hrl"}.
-
-{file, "{{webmachine}}/priv/trace/wmtrace.css",
-       "{{prefix}}/apps/webmachine/priv/trace/wmtrace.css"}.
-{file, "{{webmachine}}/priv/trace/wmtrace.js",
-       "{{prefix}}/apps/webmachine/priv/trace/wmtrace.js"}.
-{file, "{{webmachine}}/priv/trace/http-headers-status-v3.png",
-       "{{prefix}}/apps/webmachine/priv/trace/http-headers-status-v3.png"}.
-
-{file, "{{webmachine}}/src/wrq.erl",
-       "{{prefix}}/apps/webmachine/src/wrq.erl"}.
-{file, "{{webmachine}}/src/wmtrace_resource.erl",
-       "{{prefix}}/apps/webmachine/src/wmtrace_resource.erl"}.
-{file, "{{webmachine}}/src/webmachine_util.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_util.erl"}.
-{file, "{{webmachine}}/src/webmachine_sup.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_sup.erl"}.
-{file, "{{webmachine}}/src/webmachine_resource.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_resource.erl"}.
-{file, "{{webmachine}}/src/webmachine_request.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_request.erl"}.
-{file, "{{webmachine}}/src/webmachine_perf_logger.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_perf_logger.erl"}. 
-{file, "{{webmachine}}/src/webmachine_multipart.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_multipart.erl"}.
-{file, "{{webmachine}}/src/webmachine_mochiweb.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_mochiweb.erl"}.
-{file, "{{webmachine}}/src/webmachine_logger.hrl",
-       "{{prefix}}/apps/webmachine/src/webmachine_logger.hrl"}.
-{file, "{{webmachine}}/src/webmachine_logger.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_logger.erl"}.
-{file, "{{webmachine}}/src/webmachine_error_handler.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_error_handler.erl"}.
-{file, "{{webmachine}}/src/webmachine_dispatcher.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_dispatcher.erl"}.
-{file, "{{webmachine}}/src/webmachine_deps.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_deps.erl"}.
-{file, "{{webmachine}}/src/webmachine_decision_core.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_decision_core.erl"}.
-{file, "{{webmachine}}/src/webmachine_app.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine_app.erl"}.
-{file, "{{webmachine}}/src/webmachine.erl",
-       "{{prefix}}/apps/webmachine/src/webmachine.erl"}.
-
-%% Mochiweb
-{file, "{{webmachine}}/deps/mochiweb/ebin/mochiweb.app",
-       "{{prefix}}/apps/mochiweb/ebin/mochiweb.app"}.
-
-{file, "{{webmachine}}/deps/mochiweb/src/reloader.erl",
-       "{{prefix}}/apps/mochiweb/src/reloader.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_util.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_util.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_sup.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_sup.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_socket_server.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_socket_server.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_skel.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_skel.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_response.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_response.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_request.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_request.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_multipart.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_multipart.erl"}. 
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_http.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_http.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_html.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_html.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_headers.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_headers.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_echo.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_echo.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_cookies.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_cookies.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_charref.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_charref.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_app.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb_app.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochiweb.erl",
-       "{{prefix}}/apps/mochiweb/src/mochiweb.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochinum.erl",
-       "{{prefix}}/apps/mochiweb/src/mochinum.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochijson2.erl",
-       "{{prefix}}/apps/mochiweb/src/mochijson2.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochijson.erl",
-       "{{prefix}}/apps/mochiweb/src/mochijson.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochihex.erl",
-       "{{prefix}}/apps/mochiweb/src/mochihex.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochifmt_std.erl",
-       "{{prefix}}/apps/mochiweb/src/mochifmt_std.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochifmt_records.erl",
-       "{{prefix}}/apps/mochiweb/src/mochifmt_records.erl"}.
-{file, "{{webmachine}}/deps/mochiweb/src/mochifmt.erl",
-       "{{prefix}}/apps/mochiweb/src/mochifmt.erl"}.
+{dir, "{{prefix}}/deps"}.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.