diff options
author | Joan Touzet <wohali@atypical.net> | 2016-06-17 19:12:41 -0400 |
---|---|---|
committer | Joan Touzet <wohali@atypical.net> | 2016-06-17 19:12:41 -0400 |
commit | 03bbe213ef49cb8f2bfac190257f0cbe9b1d5f54 (patch) | |
tree | 7cd2e67c56feca0d3e8fdeee2ffd8785d9cdcedd | |
parent | 5e8041e96b0cdc2be75461e7ea4fb69894871e4b (diff) | |
download | couchdb-03bbe213ef49cb8f2bfac190257f0cbe9b1d5f54.tar.gz |
Use UNIX-style paths for view servers on Windows
-rwxr-xr-x | dev/run | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -249,9 +249,15 @@ def hack_default_ini(ctx, node, content): coffeejs = os.path.join(ctx['rootdir'], "share", "server", "main-coffee.js") repl = "javascript = %s %s" % (couchjs, mainjs) + if os.name == 'nt': + # Erlang always wants UNIX-style paths + repl = repl.replace("\\", "/") contents = re.sub("(?m)^javascript.*$", repl, contents) repl = "coffeescript = %s %s" % (couchjs, coffeejs) + if os.name == 'nt': + # Erlang always wants UNIX-style paths + repl = repl.replace("\\", "/") contents = re.sub("(?m)^coffeescript.*$", repl, contents) return contents |