From 8db96757706deff8b1000be56805a489c94ab506 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Fri, 12 Nov 2021 22:10:13 -0800 Subject: [PATCH] fix line-ending --- bin/addfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addfile.js b/bin/addfile.js index 68df94ff3..d0c2f92e5 100644 --- a/bin/addfile.js +++ b/bin/addfile.js @@ -2,4 +2,4 @@ a=new ActiveXObject("scripting.filesystemobject") offset=a.getfile("BUILD\\TOTAL.IDX").size new ActiveXObject("wscript.shell").run('cmd /c copy /b /y BUILD\\TOTAL.IDX + ' + WScript.Arguments(0) + ' BUILD\\TOTAL.IDX', 0, 1) size=a.getfile(WScript.Arguments(0)).size -a.createtextfile(WScript.Arguments(1)).write(";\n; Index record for " + WScript.Arguments(0).replace(/\\/, "/") + "\n;\n; This file is automatically generated\n;\n !byte 0\n !be24 " + " ".substr(0, 8 - offset.toString().length) + offset + "\n !le16 " + " ".substr(0, 8 - size.toString().length) + size + "\n") +a.createtextfile(WScript.Arguments(1)).write(";\r\n; Index record for " + WScript.Arguments(0).replace(/\\/, "/") + "\r\n;\r\n; This file is automatically generated\r\n;\r\n !byte 0\r\n !be24 " + " ".substr(0, 8 - offset.toString().length) + offset + "\r\n !le16 " + " ".substr(0, 8 - size.toString().length) + size + "\r\n")