<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,6 +9,10 @@ docs:
 	-noshell
 	-run edoc_run application &quot;'ErlyWeb'&quot; '&quot;.&quot;' '[no_packages]'
 
+install:
+	
+	cp -r . `erl -noshell -eval 'io:format(code:lib_dir()).' -s erlang halt`/erlyweb-0.7.3
+
 clean:
 	rm ebin/*.beam
 	</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -4,3 +4,15 @@ Date: 10/27/2006
 ErlyWeb is a web development framework for Erlang. It lets you quickly and easily build database-driven webapps following the MVC pattern.
 
 For more information, visit http://erlyweb.org.
+
+
+=== Installation instructions ===
+
+In the ErlyWeb directory, execute
+
+./configure
+make
+sudo make install
+
+
+This assumes you have yaws installed under your Erlang lib directory (which you can find by calling code:lib_dir() in the Erlang shell).</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -98,33 +98,30 @@ start_link(Options) -&gt;
 
 start(Options, Fun, LinkConnections) -&gt;
     [PoolId, Hostname, Port, Username, Password, Database, LogFun,
-     Encoding, PoolSize] =
+     Encoding, PoolSize, Reconnect] =
 	lists:foldl(
 	  fun(Key, Acc) -&gt;
 		  [proplists:get_value(Key, Options) | Acc]
 	  end, [],
 	  lists:reverse([pool_id, hostname, port, username,
-			 password, database, logfun, encoding, poolsize])),
+			 password, database, logfun, encoding, poolsize, reconnect])),
 
     PoolId1 = if PoolId == undefined -&gt; ?Epid; true -&gt; PoolId end,
-    PoolSize1 = if PoolSize == undefined -&gt;
-			1;
-		   true -&gt;
-			PoolSize
-		end,
+    PoolSize1 = if PoolSize == undefined -&gt; 1; true -&gt; PoolSize end,
     Fun(PoolId1, Hostname, Port, Username, Password, Database, LogFun,
 	Encoding),
+    Reconnect1 = if Reconnect == undefined -&gt; true; true -&gt; Reconnect end,
     make_connection(PoolSize1-1, PoolId, Database, Hostname, Port,
-		    Username, Password, Encoding, LinkConnections).
+		    Username, Password, Encoding, Reconnect1, LinkConnections).
 
 %% @doc Create a a number of database connections in the pool.
 make_connection(PoolSize, PoolId, Database, Hostname, Port,
-		  Username, Password, Encoding, LinkConnections) -&gt;
+		  Username, Password, Encoding, Reconnect, LinkConnections) -&gt;
     if PoolSize &gt; 0 -&gt;
 	    connect(PoolId, Hostname, Port, Username, Password, Database,
-		    Encoding, LinkConnections),
+		    Encoding, Reconnect, LinkConnections),
 	    make_connection(PoolSize-1, PoolId, Database, Hostname, Port,
-			    Username, Password, Encoding,
+			    Username, Password, Encoding, Reconnect,
 			    LinkConnections);
        true -&gt;
 	    ok</diff>
      <filename>src/erlydb/erlydb_mysql.erl</filename>
    </modified>
    <modified>
      <diff>@@ -580,7 +580,7 @@ compile(MetaMod, Options) -&gt;
 
     Forms1 = [{attribute, 1, file, {FileName, 1}} | Forms],
     Forms2 = Forms1 ++ lists:reverse(MetaMod#meta_mod.forms),
-
+    
     case compile:forms(Forms2, Options) of
 	{ok, Module, Bin} -&gt;
 	    Res = </diff>
      <filename>src/smerl/smerl.erl</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>Emakefile</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>fcd1453e36621b6465319e1e67bed009f9d835b6</id>
    </parent>
  </parents>
  <author>
    <name>yarivvv</name>
    <email>yarivvv</email>
  </author>
  <url>http://github.com/yariv/erlyweb/commit/093a8f5830992865be751cd06b08f2002c3b26e6</url>
  <id>093a8f5830992865be751cd06b08f2002c3b26e6</id>
  <committed-date>2008-10-04T15:35:08-07:00</committed-date>
  <authored-date>2008-10-04T15:35:08-07:00</authored-date>
  <message>fixed mysql connection functions, and added a proper configure file and a make install script</message>
  <tree>552f6b0da03354a7c09471f704cf03c3f6f32bd0</tree>
  <committer>
    <name>yarivvv</name>
    <email>yarivvv</email>
  </committer>
</commit>
