From 1d2ba32ebaf40471785ef62c786808b28baa5ef9 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Fri, 4 Sep 2020 20:46:22 -0700
Subject: [PATCH] Revert "Merge branch 'pregmod-master' into 'pregmod-master'"

This reverts merge request !7653
---
 devTools/concatFiles.bat | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/devTools/concatFiles.bat b/devTools/concatFiles.bat
index 38617bc1252..3da9527a846 100644
--- a/devTools/concatFiles.bat
+++ b/devTools/concatFiles.bat
@@ -1,29 +1,15 @@
 @echo off
 :: Concatenates files from dir %1 specified with wildcard %2 and outputs result to %3
 
-:: temporary codepage change to avoid mojibake
-FOR /f "tokens=2 delims=:." %%x IN ('CHCP') DO SET _CP=%%x
-CHCP 65001 > NUL
-
 :: TODO Proper temp file instead of bin\list.txt
 IF EXIST %3 DEL %3
 SET _LISTFILE="bin\list.txt"
-
-:: Collect sorted list of files
 >%_LISTFILE% (FOR /R "%~1" %%F IN (%2) DO echo "%%F")
 sort /O %_LISTFILE% %_LISTFILE%
-
-:: If we have powershell available, strip the absolute path information
-:: If not, fail silently (which is fine, but will leak path information into the built file)
-powershell -command "" 2> NUL
-IF %ERRORLEVEL% EQU 0 powershell -command "(get-content -path %_LISTFILE% -raw -encoding utf8) -replace [regex]::escape('%CD%'),'' -replace '\"','' ^| set-content -encoding utf8 -path %_LISTFILE%"
-
-:: Append the files
 (FOR /F "usebackq delims=" %%F IN (`type "%_LISTFILE%"`) DO (
 	echo /* %%F */ >> %3
-	copy /b %3+"%CD%%%F" %3 1>NUL
+	copy /b %3+%%F %3 1>NUL
 	)
 )
 
 DEL %_LISTFILE%
-CHCP %_CP% > NUL
\ No newline at end of file
-- 
GitLab