From 26e107401765f86c6439d930bf59b96dbc1deb4f Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Thu, 24 Jan 2013 05:40:25 +1000 Subject: [PATCH] Fix Makefile script for windows line endings --- Makefile.dryice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.dryice.js b/Makefile.dryice.js index 218cd7ef..1e7952a9 100755 --- a/Makefile.dryice.js +++ b/Makefile.dryice.js @@ -476,7 +476,7 @@ var detectTextModules = function(input, source) { input = input.replace(/\\/g, "\\\\").replace(/"/g, '\\"'); input = input.replace(/\n\s+/g, "\n"); - input = '"' + input.replace(/\n/g, '\\\n') + '"'; + input = '"' + input.replace(/\r?\n/g, '\\\n') + '"'; textModules[module] = input; return "";