1 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/etap/Makefile.in ./src/etap/Makefile.in |
2 | | --- ../apache-couchdb-1.2.1-orig/src/etap/Makefile.in 2012-12-20 15:28:49.000000000 -0600 |
3 | | +++ ./src/etap/Makefile.in 2013-03-17 01:46:46.000000000 -0500 |
4 | | @@ -109,7 +109,7 @@ |
5 | | ERL = @ERL@ |
6 | | ERLANG_FLAGS = @ERLANG_FLAGS@ |
7 | | ERLC = @ERLC@ |
8 | | -ERLC_FLAGS = @ERLC_FLAGS@ |
9 | | +ERLC_FLAGS = @ERLC_FLAGS@ -pa . |
10 | | EXEEXT = @EXEEXT@ |
11 | | FGREP = @FGREP@ |
12 | | FLAGS = @FLAGS@ |
13 | | @@ -253,6 +253,7 @@ |
14 | | version_stage = @version_stage@ |
15 | | etapebindir = $(localerlanglibdir)/etap/ebin |
16 | | etap_file_collection = \ |
17 | | + pmod_pt.erl \ |
18 | | etap.erl \ |
19 | | etap_application.erl \ |
20 | | etap_can.erl \ |
21 | | @@ -264,6 +265,7 @@ |
22 | | etap_web.erl |
| 1 | --- ../apache-couchdb-1.3.0.orig/configure 2013-03-30 09:46:50.000000000 -0500 |
| 2 | +++ ./configure 2013-04-05 10:12:43.000000000 -0500 |
| 3 | @@ -18448,7 +18448,7 @@ |
| 4 | as_fn_error $? "$erlang_version_error" "$LINENO" 5 |
| 5 | fi |
49 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/etap/pmod_pt.erl ./src/etap/pmod_pt.erl |
50 | | --- ../apache-couchdb-1.2.1-orig/src/etap/pmod_pt.erl 1969-12-31 18:00:00.000000000 -0600 |
51 | | +++ ./src/etap/pmod_pt.erl 2013-03-17 01:46:16.000000000 -0500 |
| 59 | +-compile({parse_transform, pmod_pt}). |
| 60 | + |
| 61 | format(Format, Args) -> |
| 62 | mochifmt:format(Format, Args, THIS). |
| 63 | |
| 64 | --- ../apache-couchdb-1.3.0.orig/src/mochiweb/mochiweb_request.erl 2013-03-30 09:46:38.000000000 -0500 |
| 65 | +++ ./src/mochiweb/mochiweb_request.erl 2013-04-05 10:12:43.000000000 -0500 |
| 66 | @@ -23,6 +23,8 @@ |
| 67 | -export([accepted_encodings/1]). |
| 68 | -export([accepts_content_type/1]). |
| 69 | |
| 70 | +-compile({parse_transform, pmod_pt}). |
| 71 | + |
| 72 | -define(SAVE_QS, mochiweb_request_qs). |
| 73 | -define(SAVE_PATH, mochiweb_request_path). |
| 74 | -define(SAVE_RECV, mochiweb_request_recv). |
| 75 | --- ../apache-couchdb-1.3.0.orig/src/mochiweb/mochiweb_response.erl 2013-03-30 09:46:38.000000000 -0500 |
| 76 | +++ ./src/mochiweb/mochiweb_response.erl 2013-04-05 10:12:43.000000000 -0500 |
| 77 | @@ -11,6 +11,8 @@ |
| 78 | -export([get_header_value/1, get/1, dump/0]). |
| 79 | -export([send/1, write_chunk/1]). |
| 80 | |
| 81 | +-compile({parse_transform, pmod_pt}). |
| 82 | + |
| 83 | %% @spec get_header_value(string() | atom() | binary()) -> string() | undefined |
| 84 | %% @doc Get the value of the given response header. |
| 85 | get_header_value(K) -> |
| 86 | --- ../apache-couchdb-1.3.0.orig/src/mochiweb/pmod_pt.erl 1969-12-31 18:00:00.000000000 -0600 |
| 87 | +++ ./src/mochiweb/pmod_pt.erl 2013-04-05 10:12:43.000000000 -0500 |
516 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/mochiweb/Makefile.in ./src/mochiweb/Makefile.in |
517 | | --- ../apache-couchdb-1.2.1-orig/src/mochiweb/Makefile.in 2012-12-20 15:28:49.000000000 -0600 |
518 | | +++ ./src/mochiweb/Makefile.in 2013-03-17 01:46:16.000000000 -0500 |
519 | | @@ -109,7 +109,7 @@ |
520 | | ERL = @ERL@ |
521 | | ERLANG_FLAGS = @ERLANG_FLAGS@ |
522 | | ERLC = @ERLC@ |
523 | | -ERLC_FLAGS = @ERLC_FLAGS@ |
524 | | +ERLC_FLAGS = @ERLC_FLAGS@ -pa ../etap |
525 | | EXEEXT = @EXEEXT@ |
526 | | FGREP = @FGREP@ |
527 | | FLAGS = @FLAGS@ |
528 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/mochiweb/mochifmt_records.erl ./src/mochiweb/mochifmt_records.erl |
529 | | --- ../apache-couchdb-1.2.1-orig/src/mochiweb/mochifmt_records.erl 2012-12-20 15:24:07.000000000 -0600 |
530 | | +++ ./src/mochiweb/mochifmt_records.erl 2013-03-17 01:46:16.000000000 -0500 |
531 | | @@ -13,6 +13,8 @@ |
532 | | -author('bob@mochimedia.com'). |
533 | | -export([get_value/2]). |
534 | | |
535 | | +-compile({parse_transform, pmod_pt}). |
536 | | + |
537 | | get_value(Key, Rec) when is_tuple(Rec) and is_atom(element(1, Rec)) -> |
538 | | try begin |
539 | | Atom = list_to_existing_atom(Key), |
540 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/mochiweb/mochifmt_std.erl ./src/mochiweb/mochifmt_std.erl |
541 | | --- ../apache-couchdb-1.2.1-orig/src/mochiweb/mochifmt_std.erl 2012-12-20 15:24:07.000000000 -0600 |
542 | | +++ ./src/mochiweb/mochifmt_std.erl 2013-03-17 01:46:16.000000000 -0500 |
543 | | @@ -7,6 +7,8 @@ |
544 | | -author('bob@mochimedia.com'). |
545 | | -export([format/2, get_value/2, format_field/2, get_field/2, convert_field/2]). |
546 | | |
547 | | +-compile({parse_transform, pmod_pt}). |
548 | | + |
549 | | format(Format, Args) -> |
550 | | mochifmt:format(Format, Args, THIS). |
551 | | |
552 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/mochiweb/mochiweb_request.erl ./src/mochiweb/mochiweb_request.erl |
553 | | --- ../apache-couchdb-1.2.1-orig/src/mochiweb/mochiweb_request.erl 2012-12-20 15:24:07.000000000 -0600 |
554 | | +++ ./src/mochiweb/mochiweb_request.erl 2013-03-17 01:46:16.000000000 -0500 |
555 | | @@ -23,6 +23,8 @@ |
556 | | -export([accepted_encodings/1]). |
557 | | -export([accepts_content_type/1]). |
558 | | |
559 | | +-compile({parse_transform, pmod_pt}). |
560 | | + |
561 | | -define(SAVE_QS, mochiweb_request_qs). |
562 | | -define(SAVE_PATH, mochiweb_request_path). |
563 | | -define(SAVE_RECV, mochiweb_request_recv). |
564 | | diff -ruN ../apache-couchdb-1.2.1-orig/src/mochiweb/mochiweb_response.erl ./src/mochiweb/mochiweb_response.erl |
565 | | --- ../apache-couchdb-1.2.1-orig/src/mochiweb/mochiweb_response.erl 2012-12-20 15:24:07.000000000 -0600 |
566 | | +++ ./src/mochiweb/mochiweb_response.erl 2013-03-17 01:46:16.000000000 -0500 |
567 | | @@ -11,6 +11,8 @@ |
568 | | -export([get_header_value/1, get/1, dump/0]). |
569 | | -export([send/1, write_chunk/1]). |
570 | | |
571 | | +-compile({parse_transform, pmod_pt}). |
572 | | + |
573 | | %% @spec get_header_value(string() | atom() | binary()) -> string() | undefined |
574 | | %% @doc Get the value of the given response header. |
575 | | get_header_value(K) -> |