-
Notifications
You must be signed in to change notification settings - Fork 1
/
report-branch.bat
27 lines (18 loc) · 1.49 KB
/
report-branch.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
@REM Copyright 2014-2017 Peter Dimov
@REM Distributed under the Boost Software License, Version 1.0.
SET BOOSTDEP=dist\bin\boostdep.exe
FOR /f %%i IN ('git rev-parse HEAD') DO @SET REV=%%i
FOR /f %%i IN ('git rev-parse --short HEAD') DO @SET SHREV=%%i
FOR /f %%i IN ('git rev-parse --abbrev-ref HEAD') DO @SET BRANCH=%%i
SET OUTDIR=%1
mkdir %OUTDIR%
ECHO @import '../report.css';> %OUTDIR%\report-branch.css
ECHO .report-revision::after { content: '%BRANCH%-%SHREV%'; }>> %OUTDIR%\report-branch.css
ECHO .report-timestamp::after { content: '%DATE% %TIME%'; }>> %OUTDIR%\report-branch.css
SET PREFIX="<div class='logo'><div class='upper'>boost</div><div class='lower'>Dependency Report</div><div class='description'><span class='report-revision'></span>, <span class='report-timestamp'></span></div></div><hr />"
SET OPTIONS=--html-stylesheet report-branch.css --html-prefix %PREFIX%
%BOOSTDEP% --list-modules > %OUTDIR%\list-modules.txt
%BOOSTDEP% %OPTIONS% --html-title "Boost Module Overview" --html --track-sources --module-overview > %OUTDIR%\module-overview.html
%BOOSTDEP% %OPTIONS% --html-title "Boost Module Levels" --html --track-sources --module-levels > %OUTDIR%\module-levels.html
%BOOSTDEP% %OPTIONS% --html-title "Boost Module Weights" --html --track-sources --module-weights > %OUTDIR%\module-weights.html
FOR /f %%i IN (%OUTDIR%\list-modules.txt) DO %BOOSTDEP% --html-title "Boost Dependency Report for %%i" %OPTIONS% --html --track-sources --primary %%i --secondary %%i --reverse %%i > %OUTDIR%\%%i.html