@@ -5,16 +5,21 @@ rem =============== Use Microsoft Visual Studio .NET 2003 ======================
55
66rem @call "%VS60COMN%\..\VC98\Bin\VCVARS32.BAT"
77rem if exist "%VS71COMNTOOLS%\vsvars32.bat" call "%VS71COMNTOOLS%\vsvars32.bat"
8+ if exist " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
9+ call " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
10+ goto :start_build
11+ )
812if exist " %VS90COMNTOOLS% ..\..\VC\BIN\vcvars32.bat" call " %VS90COMNTOOLS% ..\..\VC\BIN\vcvars32.bat"
913
1014rem ======================== Set name and version ... =========================
1115
12- @ set PlugName = Dir
13- @ set fileversion = 3,0,0,5
14- @ set fileversion_str = 3.0 build 5
16+ :start_build
17+ @ set PlugName = dir
18+ @ set fileversion = 3,0,0,8
19+ @ set fileversion_str = 3.0 build 8
1520@ set comments = Current developer:
[email protected] 16- @ set filedescription = DIR XP/2003/Vista/7 parse for FAR Manager
17- @ set legalcopyright = © Alexander Arefiev 2001, @ Maximus5 2012
21+ @ set filedescription = DIR XP/2003/Vista/7/10 parse for FAR Manager
22+ @ set legalcopyright = © Alexander Arefiev 2001, @ Maximus5 2022
1823
1924rem ==================== remove temp files ====================================
2025
@@ -94,12 +99,17 @@ rem @echo !!!!!!! Compile %PlugName%.fmt with MSVCRT.dll ... !!!!!!!
9499@ echo ***************
95100set libcrt =
96101if exist libCRT.lib set libcrt = /nodefaultlib libCRT.lib
97- @ cl /Zp8 /O2 /GF /Gr /GR- /EHs-c- /MT %PlugName% .cpp /link /DLL /RELEASE /subsystem:console /machine:I386 /noentry /def:%PlugName% .def %libcrt% kernel32.lib User32.lib %PlugName% .res /map:" %PlugName% .map" /out:" %PlugName% .so" /merge:.rdata=.text
102+ @ cl /Zp8 /O2 /GF /Gr /GS- / GR- /EHs-c- /MT %PlugName% .cpp /link /DLL /RELEASE /subsystem:console /machine:I386 /noentry /def:%PlugName% .def %libcrt% kernel32.lib User32.lib %PlugName% .res /map:" %PlugName% .map" /out:" %PlugName% .so" /merge:.rdata=.text
98103if errorlevel 1 goto err1
99104
105+ if exist " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
106+ call " C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
107+ goto :start_build_x64
108+ )
100109if not exist " %VS90COMNTOOLS% ..\..\VC\BIN\x86_amd64\vcvarsx86_amd64.bat" goto no_x64
101110call " %VS90COMNTOOLS% ..\..\VC\BIN\x86_amd64\vcvarsx86_amd64.bat"
102111
112+ :start_build_x64
103113if exist %PlugName% .exp del %PlugName% .exp> nul
104114if exist %PlugName% .obj del %PlugName% .obj> nul
105115if exist %PlugName% .lib del %PlugName% .lib> nul
@@ -113,7 +123,7 @@ if errorlevel 1 goto err1
113123
114124set libcrt =
115125if exist libCRT64.lib set libcrt = /nodefaultlib libCRT64.lib
116- @ cl /Zp8 /O2 /GF /Gr /GR- /EHs-c- /MT %PlugName% .cpp /link /DLL /RELEASE /subsystem:console /machine:X64 /noentry /def:%PlugName% .def %libcrt% kernel32.lib User32.lib %PlugName% .res /map:" %PlugName% 64.map" /out:" %PlugName% 64.so" /merge:.rdata=.text
126+ @ cl /Zp8 /O2 /GF /Gr /GS- / GR- /EHs-c- /MT %PlugName% .cpp /link /DLL /RELEASE /subsystem:console /machine:X64 /noentry /def:%PlugName% .def %libcrt% kernel32.lib User32.lib %PlugName% .res /map:" %PlugName% 64.map" /out:" %PlugName% 64.so" /merge:.rdata=.text
117127if errorlevel 1 goto err1
118128
119129:no_x64
@@ -135,7 +145,7 @@ rem if not exist dir.fmt goto err1
135145rem if exist E:\Far\Plugins\MultiArc\Formats\Dir.fm_ del E:\Far\Plugins\MultiArc\Formats\Dir.fm_
136146rem if exist E:\Far\Plugins\MultiArc\Formats\Dir.fmt ren E:\Far\Plugins\MultiArc\Formats\Dir.fmt Dir.fm_
137147rem copy dir.fmt E:\Far\Plugins\MultiArc\Formats\Dir.fmt
138- rem
148+ rem
139149rem if exist E:\Far\Unicode\Plugins\MultiArc\Formats\Dir.fm_ del E:\Far\Unicode\Plugins\MultiArc\Formats\Dir.fm_
140150rem if exist E:\Far\Unicode\Plugins\MultiArc\Formats\Dir.fmt ren E:\Far\Unicode\Plugins\MultiArc\Formats\Dir.fmt Dir.fm_
141151rem copy dir.fmt E:\Far\Unicode\Plugins\MultiArc\Formats\Dir.fmt
0 commit comments