Commits

Fred T-H  committed 55a1176

reworking to make work with rebar without agner

  • Participants
  • Parent commits e8317b9

Comments (0)

Files changed (7)

File README.markdown

 
 You need to have Erlang, agner and agnerized rebar installed (`agner install rebar`):
 
-	rebar get-deps
-	rebar compile
+	./rebar get-deps
+	./rebar compile
 	cd rel/
-	./build.sh
+	escript build.sh
 
 And the Blogerl release is compiled. Try to compile the blogerl demo blog:
 

File apps/blogerl/ebin/blogerl.app

 {application, blogerl,
- [{description, "A tiny blog engine that generates flat HTML"},
+ [{description, "A tiny blog engine that generates flat HTML and supports markdown"},
   {vsn, "0.9.0"},
   {modules, [blog]},
-  {applications, [stdlib, kernel, erlydtl, markdown]},
-  {agner, [{requires, ["erlydtl","markdown","mochiweb"]}]}]}.
+  {applications, [stdlib, kernel, erlydtl, markdown]}]}.

File demo-blog/src/base.tpl

     <link rel="shortcut icon" href="{{ url.img }}favicon.ico" type="image/x-icon"/>
     <title>Blogerl Demo -> {% block title %}{{ meta.title }}{% endblock %}</title>
     <link rel="stylesheet" href="{{ url.css }}screen.css" media="screen, projection" />
-    <link href="{{ url.base }}feed.rss" type="application/rss+xml" rel="alternate" title="ferd.ca newsfeed" />
+    <link href="{{ url.base }}feed.rss" type="application/rss+xml" rel="alternate" title="blog newsfeed" />
   </head>
 
   <body>

File demo-blog/src/rss.tpl

 <?xml version="1.0"?>
 <rss version="2.0">
   <channel>
-    <title>Ferd.ca</title>
+    <title>My Blog</title>
     <link>{{ url.base }}</link>
     <description>My own blog about programming and whatnot.</description>
     <language>en-us</language>

File rebar

Binary file added.

File rebar.config

 {sub_dirs, ["apps/blogerl"]}.
-{require_otp_vsn, "R14"}.
-{rebar_plugins, [agner_rebar_plugin]}.
+{require_otp_vsn, "R14|R15"}.
 {lib_dirs, ["apps"]}.
+{deps_dir, "apps"}.
+{deps, [{erlydtl,  ".*", {git, "git://github.com/evanmiller/erlydtl.git", "master"}},
+        {mochiweb, ".*", {git, "git://github.com/mochi/mochiweb.git", "master"}},
+        {markdown, ".*", {git, "git://github.com/ferd/erlmarkdown.git", "master"}}]}.

File rel/rel.conf

 {sys, [
-    {lib_dirs, ["../apps/", "../apps/blogerl/deps/"]},
+    {lib_dirs, ["../apps/"]},
     {rel, "blogerl", "0.9.0",
      [kernel,
       stdlib,