Browse Source

Remove the .app.src file in all examples

Loïc Hoguin 9 years ago
parent
commit
cf44496005
36 changed files with 72 additions and 272 deletions
  1. 4 0
      examples/chunked_hello_world/Makefile
  2. 0 15
      examples/chunked_hello_world/src/chunked_hello_world.app.src
  3. 4 0
      examples/compress_response/Makefile
  4. 0 15
      examples/compress_response/src/compress_response.app.src
  5. 4 0
      examples/cookie/Makefile
  6. 0 16
      examples/cookie/src/cookie.app.src
  7. 4 0
      examples/echo_get/Makefile
  8. 0 15
      examples/echo_get/src/echo_get.app.src
  9. 4 0
      examples/echo_post/Makefile
  10. 0 15
      examples/echo_post/src/echo_post.app.src
  11. 4 0
      examples/error_hook/Makefile
  12. 0 15
      examples/error_hook/src/error_hook.app.src
  13. 4 0
      examples/eventsource/Makefile
  14. 0 15
      examples/eventsource/src/eventsource.app.src
  15. 4 0
      examples/hello_world/Makefile
  16. 0 15
      examples/hello_world/src/hello_world.app.src
  17. 4 0
      examples/markdown_middleware/Makefile
  18. 0 15
      examples/markdown_middleware/src/markdown_middleware.app.src
  19. 4 0
      examples/rest_basic_auth/Makefile
  20. 0 15
      examples/rest_basic_auth/src/rest_basic_auth.app.src
  21. 4 0
      examples/rest_hello_world/Makefile
  22. 0 15
      examples/rest_hello_world/src/rest_hello_world.app.src
  23. 4 0
      examples/rest_pastebin/Makefile
  24. 0 15
      examples/rest_pastebin/src/rest_pastebin.app.src
  25. 4 0
      examples/rest_stream_response/Makefile
  26. 0 15
      examples/rest_stream_response/src/rest_stream_response.app.src
  27. 4 0
      examples/ssl_hello_world/Makefile
  28. 0 16
      examples/ssl_hello_world/src/ssl_hello_world.app.src
  29. 4 0
      examples/static_world/Makefile
  30. 0 15
      examples/static_world/src/static_world.app.src
  31. 4 0
      examples/upload/Makefile
  32. 0 15
      examples/upload/src/upload.app.src
  33. 4 0
      examples/web_server/Makefile
  34. 0 15
      examples/web_server/src/web_server.app.src
  35. 4 0
      examples/websocket/Makefile
  36. 0 15
      examples/websocket/src/websocket.app.src

+ 4 - 0
examples/chunked_hello_world/Makefile

@@ -1,4 +1,8 @@
 PROJECT = chunked_hello_world
+PROJECT_DESCRIPTION = Cowboy chunked Hello World example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/chunked_hello_world/src/chunked_hello_world.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, chunked_hello_world, [
-	{description, "Cowboy Chunked Hello World example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [chunked_hello_world_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {chunked_hello_world_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/compress_response/Makefile

@@ -1,4 +1,8 @@
 PROJECT = compress_response
+PROJECT_DESCRIPTION = Cowboy compressed response example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/compress_response/src/compress_response.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, compress_response, [
-	{description, "Cowboy Compress Response example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [compress_response_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {compress_response_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/cookie/Makefile

@@ -1,4 +1,8 @@
 PROJECT = cookie
+PROJECT_DESCRIPTION = Cowboy Cookie example
+PROJECT_VERSION = 1
+
 DEPS = cowboy erlydtl
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 16
examples/cookie/src/cookie.app.src

@@ -1,16 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, cookie, [
-	{description, "Cowboy Cookie example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [cookie_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy,
-		erlydtl
-	]},
-	{mod, {cookie_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/echo_get/Makefile

@@ -1,4 +1,8 @@
 PROJECT = echo_get
+PROJECT_DESCRIPTION = Cowboy GET echo example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/echo_get/src/echo_get.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, echo_get, [
-	{description, "Cowboy GET echo example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [echo_get_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {echo_get_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/echo_post/Makefile

@@ -1,4 +1,8 @@
 PROJECT = echo_post
+PROJECT_DESCRIPTION = Cowboy POST echo example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/echo_post/src/echo_post.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, echo_post, [
-	{description, "Cowboy POST echo example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [echo_post_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {echo_post_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/error_hook/Makefile

@@ -1,4 +1,8 @@
 PROJECT = error_hook
+PROJECT_DESCRIPTION = Cowboy error handler example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/error_hook/src/error_hook.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, error_hook, [
-	{description, "Cowboy error handler example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [error_hook_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {error_hook_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/eventsource/Makefile

@@ -1,4 +1,8 @@
 PROJECT = eventsource
+PROJECT_DESCRIPTION = Cowboy EventSource example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/eventsource/src/eventsource.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, eventsource, [
-	{description, "Cowboy EventSource example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [eventsource_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {eventsource_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/hello_world/Makefile

@@ -1,4 +1,8 @@
 PROJECT = hello_world
+PROJECT_DESCRIPTION = Cowboy Hello World example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/hello_world/src/hello_world.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, hello_world, [
-	{description, "Cowboy Hello World example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [hello_world_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {hello_world_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/markdown_middleware/Makefile

@@ -1,4 +1,8 @@
 PROJECT = markdown_middleware
+PROJECT_DESCRIPTION = Cowboy static file handler example with middleware component
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/markdown_middleware/src/markdown_middleware.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, markdown_middleware, [
-	{description, "Cowboy static file handler example with middleware component."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [markdown_middleware_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {markdown_middleware_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/rest_basic_auth/Makefile

@@ -1,4 +1,8 @@
 PROJECT = rest_basic_auth
+PROJECT_DESCRIPTION = Cowboy Basic HTTP Authorization example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/rest_basic_auth/src/rest_basic_auth.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_basic_auth, [
-	{description, "Cowboy Basic HTTP Authorization example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [rest_basic_auth_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {rest_basic_auth_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/rest_hello_world/Makefile

@@ -1,4 +1,8 @@
 PROJECT = rest_hello_world
+PROJECT_DESCRIPTION = Cowboy REST Hello World example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/rest_hello_world/src/rest_hello_world.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_hello_world, [
-	{description, "Cowboy REST Hello World example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [rest_hello_world_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {rest_hello_world_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/rest_pastebin/Makefile

@@ -1,4 +1,8 @@
 PROJECT = rest_pastebin
+PROJECT_DESCRIPTION = Cowboy REST Pastebin example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/rest_pastebin/src/rest_pastebin.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_pastebin, [
-	{description, "Cowboy REST Pastebin example inspired by sprunge."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [rest_pastebin_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {rest_pastebin_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/rest_stream_response/Makefile

@@ -1,4 +1,8 @@
 PROJECT = rest_stream_response
+PROJECT_DESCRIPTION = Cowboy REST example with streaming
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/rest_stream_response/src/rest_stream_response.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, rest_stream_response, [
-	{description, "Cowboy REST with streaming."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [rest_stream_response_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {rest_stream_response_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/ssl_hello_world/Makefile

@@ -1,4 +1,8 @@
 PROJECT = ssl_hello_world
+PROJECT_DESCRIPTION = Cowboy SSL Hello World example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 16
examples/ssl_hello_world/src/ssl_hello_world.app.src

@@ -1,16 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, ssl_hello_world, [
-	{description, "Cowboy Hello World example with SSL."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [ssl_hello_world_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy,
-		ssl
-	]},
-	{mod, {ssl_hello_world_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/static_world/Makefile

@@ -1,4 +1,8 @@
 PROJECT = static_world
+PROJECT_DESCRIPTION = Cowboy static file handler example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/static_world/src/static_world.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, static_world, [
-	{description, "Cowboy static file handler example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [static_world_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {static_world_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/upload/Makefile

@@ -1,4 +1,8 @@
 PROJECT = upload
+PROJECT_DESCRIPTION = Cowboy multipart upload example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/upload/src/upload.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, upload, [
-	{description, "Cowboy multipart upload example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [upload_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {upload_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/web_server/Makefile

@@ -1,4 +1,8 @@
 PROJECT = web_server
+PROJECT_DESCRIPTION = Cowboy static directory indexing example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/web_server/src/web_server.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, web_server, [
-	{description, "Cowboy static file handler with directory indexes."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [web_server_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {web_server_app, []}},
-	{env, []}
-]}.

+ 4 - 0
examples/websocket/Makefile

@@ -1,4 +1,8 @@
 PROJECT = websocket
+PROJECT_DESCRIPTION = Cowboy Websocket example
+PROJECT_VERSION = 1
+
 DEPS = cowboy
 dep_cowboy = git https://github.com/ninenines/cowboy master
+
 include ../../erlang.mk

+ 0 - 15
examples/websocket/src/websocket.app.src

@@ -1,15 +0,0 @@
-%% Feel free to use, reuse and abuse the code in this file.
-
-{application, websocket, [
-	{description, "Cowboy websocket example."},
-	{vsn, "1"},
-	{modules, []},
-	{registered, [websocket_sup]},
-	{applications, [
-		kernel,
-		stdlib,
-		cowboy
-	]},
-	{mod, {websocket_app, []}},
-	{env, []}
-]}.