Update Ring2EXE - Hide Output/Error Messages (Not Necessary).
*/
+cNoOutputNoError = " >nul 2>nul"
func Main
aPara = sysargv
@@ -156,8 +157,8 @@ func GenerateBatchDynamic cFileName
cFile = substr(cFileName," ","_")
# Generate Windows Batch (Visual C/C++)
- cCode = "call "+exefolder()+"../src/locatevc.bat" + nl +
- 'cl #{f1}.c ..\lib\ring.lib -I"..\include" /link /SUBSYSTEM:CONSOLE,"5.01" /OUT:#{f1}.exe '
+ cCode = "call "+exefolder()+"../src/locatevc.bat" + cNoOutputNoError + nl +
+ 'cl #{f1}.c ..\lib\ring.lib -I"..\include" /link /SUBSYSTEM:CONSOLE,"5.01" /OUT:#{f1}.exe ' + cNoOutputNoError
cCode = substr(cCode,"#{f1}",cFile)
cWindowsBatch = cFile+"_buildvc.bat"
write(cWindowsBatch,cCode)
@@ -186,7 +187,9 @@ func GenerateBatchDynamic cFileName
ok
func GenerateBatchStatic cFileName
+
msg("Generate batch|script file for static building...")
+
cFile = substr(cFileName," ","_")
cRingSourceFiles =
@@ -198,8 +201,8 @@ func GenerateBatchStatic cFileName
../src/ring_ext.c ../src/ring_vmdll.c ../src/ring_objfile.c"
# Generate Windows Batch (Visual C/C++)
- cCode = "call "+exefolder()+"../src/locatevc.bat" + nl +
- 'cl #{f1}.c #{f2} -I"..\include" -I"../src/" /link /SUBSYSTEM:CONSOLE,"5.01" /OUT:#{f1}.exe '
+ cCode = "call "+exefolder()+"../src/locatevc.bat" + cNoOutputNoError + nl +
+ 'cl #{f1}.c #{f2} -I"..\include" -I"../src/" /link /SUBSYSTEM:CONSOLE,"5.01" /OUT:#{f1}.exe' + cNoOutputNoError
cCode = substr(cCode,"#{f1}",cFile)
cCode = substr(cCode,"#{f2}","..\lib\ringstatic.lib")
cWindowsBatch = cFile+"_buildvc.bat"
@@ -233,7 +236,7 @@ func GenerateBatchStatic cFileName
func ClearTempFiles
msg("Clear Temp. Files...")
if isWindows()
- systemSilent("cleartemp.bat")
+ system("cleartemp.bat" + cNoOutputNoError )
else
systemSilent("./cleartemp.sh")
ok
