summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <wohali@atypical.net>2016-06-17 19:12:41 -0400
committerJoan Touzet <wohali@atypical.net>2016-06-17 19:12:41 -0400
commit03bbe213ef49cb8f2bfac190257f0cbe9b1d5f54 (patch)
tree7cd2e67c56feca0d3e8fdeee2ffd8785d9cdcedd
parent5e8041e96b0cdc2be75461e7ea4fb69894871e4b (diff)
downloadcouchdb-03bbe213ef49cb8f2bfac190257f0cbe9b1d5f54.tar.gz
Use UNIX-style paths for view servers on Windows
-rwxr-xr-xdev/run6
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/run b/dev/run
index 8f2164e71..81398d0b5 100755
--- a/dev/run
+++ b/dev/run
@@ -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