瀏覽代碼

Scan executables for viruses before packaging them.

git-svn-id: file:///var/svn/tigccpp/trunk@114 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 年之前
父節點
當前提交
deafee9fbb
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 13 0
      tigcc/setup/ScanForViruses.bat
  2. 1 0
      tigcc/setup/makeall.bat

+ 13 - 0
tigcc/setup/ScanForViruses.bat

@@ -0,0 +1,13 @@
+@ECHO OFF
+
+SET TIGCCDIR=E:\TI-89\Compilers\TIGCC
+SET TIGCCCVSDIR=E:\TI-89\tigcccvs
+SET CLAMWINDIR=E:\clamav\ClamWin
+
+ECHO Scanning executables for viruses...
+"%CLAMWINDIR%\bin\clamscan" -ir -d "%CLAMWINDIR%\db" "%TIGCCDIR%\tigcc.exe" "%TIGCCDIR%\tprbuilder.exe" "%TIGCCDIR%\Bin" "%TIGCCCVSDIR%\doc\Programs" Setup.exe
+IF NOT ERRORLEVEL 1 GOTO OK
+ECHO.
+ECHO ERROR: Viruses found!
+PAUSE
+:OK

+ 1 - 0
tigcc/setup/makeall.bat

@@ -1,4 +1,5 @@
 @call CompressIDE.bat
 @call CreateSetup.bat
+@call ScanForViruses.bat
 @call CreateZip.bat
 @call CreateSourceZip.bat