summaryrefslogtreecommitdiff
path: root/tools/boostdep/examples
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /tools/boostdep/examples
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'tools/boostdep/examples')
-rw-r--r--tools/boostdep/examples/report.bat29
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