couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [35/50] couch commit: updated refs/heads/import to 09c6556
Date Mon, 10 Feb 2014 20:22:57 GMT
Fix formatting of rebar.config.script


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/dd17921d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/dd17921d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/dd17921d

Branch: refs/heads/import
Commit: dd17921d96f46d0bdd555bc2e43edecd4f465929
Parents: b51ea97
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Feb 3 15:47:59 2014 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Tue Feb 4 17:03:53 2014 -0600

----------------------------------------------------------------------
 rebar.config.script | 52 +++++++++++++++++++++++++++++-------------------
 1 file changed, 31 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/dd17921d/rebar.config.script
----------------------------------------------------------------------
diff --git a/rebar.config.script b/rebar.config.script
index b92bde1..bbc8400 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -10,30 +10,32 @@
 %% License for the specific language governing permissions and limitations under
 %% the License.
 
-%% declare values
 CouchJSName = case os:type() of
     {win32, _} ->
         "couchjs.exe";
     _ ->
         "couchjs"
 end,
+CouchJSPath = filename:join(["priv", CouchJSName]),
 Version = string:strip(os:cmd("git describe --always"), right, $\n),
 
-%% build config.h
+
 ConfigH = [
- {"SM185", ""},
- {"HAVE_JS_GET_STRING_CHARS_AND_LENGTH", "1"},
- {"JSSCRIPT_TYPE", "JSObject*"},
- {"COUCHJS_NAME", "\"" ++ CouchJSName++ "\""},
- {"PACKAGE", "\"apache-couchdb\""},
- {"PACKAGE_BUGREPORT", "\"https://issues.apache.org/jira/browse/COUCHDB\""},
- {"PACKAGE_NAME", "\"Apache CouchDB\""},
- {"PACKAGE_STRING", "\"Apache CouchDB " ++ Version ++ "\""},
- {"PACKAGE_VERSION", "\"" ++ Version ++ "\""}],
+    {"SM185", ""},
+    {"HAVE_JS_GET_STRING_CHARS_AND_LENGTH", "1"},
+    {"JSSCRIPT_TYPE", "JSObject*"},
+    {"COUCHJS_NAME", "\"" ++ CouchJSName++ "\""},
+    {"PACKAGE", "\"apache-couchdb\""},
+    {"PACKAGE_BUGREPORT", "\"https://issues.apache.org/jira/browse/COUCHDB\""},
+    {"PACKAGE_NAME", "\"Apache CouchDB\""},
+    {"PACKAGE_STRING", "\"Apache CouchDB " ++ Version ++ "\""},
+    {"PACKAGE_VERSION", "\"" ++ Version ++ "\""}
+],
+
 ConfigSrc = [["#define ", K, " ", V, $\n] || {K, V} <- ConfigH],
 ok = file:write_file("priv/couch_js/config.h", ConfigSrc),
 
-%% compile-time parameters
+
 JSLIBS = "-lmozjs185",
 {CFLAGS0, LDFLAGS} = case os:type() of
     {unix, darwin} ->
@@ -47,19 +49,24 @@ JSLIBS = "-lmozjs185",
 end,
 CFLAGS1 = CFLAGS0 ++ " -DWITHOUT_CURL",
 
+
 PortEnv = [
     {"DRV_CFLAGS",  "$DRV_CFLAGS -DPIC -O2 -fno-common"},
     {"DRV_LDFLAGS", "$DRV_LDFLAGS -lm -licuuc -licudata -licui18n -lpthread"},
     {"CFLAGS", "$CFLAGS -Wall -c -g -O2 " ++ CFLAGS1},
-    {"LDFLAGS", LDFLAGS}],
+    {"LDFLAGS", LDFLAGS}
+],
+
 
-CouchJSSpec = [{filename:join(["priv", CouchJSName]),
-                ["priv/couch_js/{help,http,main,utf8,util}.c"]}],
-SpawnSpec = [{"priv/couchspawnkillable", ["priv/spawnkillable/*.c"]}],
-IcuSpec = [{"priv/couch_icu_driver.so", ["priv/icu_driver/*.c"]}],
-CompareSpec = [{"priv/couch_ejson_compare.so", ["priv/couch_ejson_compare/*.c"]}],
+BaseSpecs = [
+    {CouchJSPath, ["priv/couch_js/*.c"]},
+    {"priv/couch_icu_driver.so", ["priv/icu_driver/*.c"]},
+    {"priv/couch_ejson_compare.so", ["priv/couch_ejson_compare/*.c"]}
+],
 
-BaseSpecs = CouchJSSpec ++ IcuSpec ++ CompareSpec,
+SpawnSpec = [
+    {"priv/couchspawnkillable", ["priv/spawnkillable/*.c"]}
+],
 
 PortSpecs = case os:type() of
     {win32, _} ->
@@ -71,5 +78,8 @@ PortSpecs = case os:type() of
         BaseSpecs
 end,
 
-[{port_env, PortEnv},
- {port_specs, PortSpecs}].
+
+[
+    {port_env, PortEnv},
+    {port_specs, PortSpecs}
+].


Mime
View raw message