forked from nmap/npcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_docs.bat
31 lines (24 loc) · 1.08 KB
/
create_docs.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
IF "%2"=="" (set WPDPACKDESTDIR=.\npcap-sdk\) ELSE (set WPDPACKDESTDIR=%2)
IF ""=="%1" (set WINPCAPSOURCEDIR=.\) ELSE (set WINPCAPSOURCEDIR=%1)
echo Creating \docs folder
mkdir %WPDPACKDESTDIR% >nul 2>nul
mkdir %WPDPACKDESTDIR%\docs >nul 2>nul
mkdir %WPDPACKDESTDIR%\docs\html >nul 2>nul
pushd %WINPCAPSOURCEDIR%\dox\prj
echo - Deleting existing WinPcap documentation
del /q docs\*.* 2> nul > nul
echo - Creating new documentation
doxygen winpcap_noc.dox >nul
echo - Copying all gif files
xcopy ..\pics\*.gif docs\. /v /y /q >nul
xcopy ..\*.gif docs\. /v /y /q >nul
popd
xcopy /v /Y %WINPCAPSOURCEDIR%\dox\WinPcap_docs.html %WPDPACKDESTDIR%\docs\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\dox\prj\docs\*.* %WPDPACKDESTDIR%\docs\html\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\dox\*.gif %WPDPACKDESTDIR%\docs\html\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\dox\pics\*.gif %WPDPACKDESTDIR%\docs\html\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\docs\npcap-guide-wrapper.html %WPDPACKDESTDIR%\docs\ >nul
echo Folder \docs created successfully
set WPDPACKDESTDIR=
set WINPCAPSOURCEDIR=