diff options
Diffstat (limited to 'tools/boostdep/examples')
-rw-r--r-- | tools/boostdep/examples/report.bat | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/tools/boostdep/examples/report.bat b/tools/boostdep/examples/report.bat index 5690adde5..ad805d48c 100644 --- a/tools/boostdep/examples/report.bat +++ b/tools/boostdep/examples/report.bat @@ -1,20 +1,26 @@ -REM This is an example cmd.exe batch script -REM that uses boostdep.exe to generate a -REM complete Boost dependency report. -REM It needs to be run from the Boost root. - -REM git pull -REM git submodule update --init - -SET BOOSTDEP=bin.v2\tools\boostdep\src\msvc-8.0\release\link-static\threading-multi\boostdep.exe +@REM This is an example cmd.exe batch script +@REM that uses boostdep.exe to generate a +@REM complete Boost dependency report. +@REM +@REM It needs to be run from the Boost root. +@REM +@REM Copyright 2014, 2015 Peter Dimov +@REM +@REM Distributed under the Boost Software License, Version 1.0. +@REM See accompanying file LICENSE_1_0.txt or copy at +@REM http://www.boost.org/LICENSE_1_0.txt + +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 -SET FOOTER=Generated on %DATE% %TIME% from revision %REV% +FOR /f %%i IN ('git rev-parse --abbrev-ref HEAD') DO @SET BRANCH=%%i + +SET FOOTER=Generated on %DATE% %TIME% from revision %REV% on branch '%BRANCH%' -SET OUTDIR=..\report-%SHREV% +SET OUTDIR=..\report-%BRANCH%-%SHREV% mkdir %OUTDIR% @@ -22,5 +28,6 @@ mkdir %OUTDIR% %BOOSTDEP% --footer "%FOOTER%" --html --module-overview > %OUTDIR%\module-overview.html %BOOSTDEP% --footer "%FOOTER%" --html --module-levels > %OUTDIR%\module-levels.html +%BOOSTDEP% --footer "%FOOTER%" --html --module-weights > %OUTDIR%\module-weights.html FOR /f %%i IN (%OUTDIR%\list-modules.txt) DO %BOOSTDEP% --title "Dependency Report for %%i" --footer "%FOOTER%" --html --primary %%i --secondary %%i --reverse %%i > %OUTDIR%\%%i.html |