fix line-ending

This commit is contained in:
Peter Ferrie 2021-11-12 22:10:13 -08:00
parent bd6611bee9
commit 8db9675770

View File

@ -2,4 +2,4 @@ a=new ActiveXObject("scripting.filesystemobject")
offset=a.getfile("BUILD\\TOTAL.IDX").size 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) 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 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")