couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From janl <>
Subject [GitHub] couchdb pull request: Add first stab at a release build script.
Date Wed, 11 Feb 2015 23:21:39 GMT
Github user janl commented on the pull request:
    I also have this patch for couchdb-couch/rebar.config.script so it runs correctly in a
non-git environment, but as far as I can tell right now, it is not really needed. It might
come in handy later:
    diff --git a/rebar.config.script b/rebar.config.script
    index 09e11ad..4a1ae87 100644
    --- a/rebar.config.script
    +++ b/rebar.config.script
    @@ -32,7 +32,12 @@ CouchJSName = case os:type() of
     CouchJSPath = filename:join(["priv", CouchJSName]),
    -Version = string:strip(os:cmd("git describe --always"), right, $\n),
    +Version = case file:open(".git", read) of
    +    {error, _Reason}
    +      -> "2.0.0"; % TODO: make dynamic
    +    _Else ->
    +        string:strip(os:cmd("git describe --always"), right, $\n)
    +    end.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message