2023-06-09 13:15:31 +00:00
|
|
|
@echo off
|
2023-06-08 15:59:03 +00:00
|
|
|
setlocal enabledelayedexpansion
|
2023-06-09 13:08:50 +00:00
|
|
|
set /p version=<..\layouts\partials\version.txt
|
2023-06-08 15:59:03 +00:00
|
|
|
echo %version%>metrics.%version%.log
|
2023-06-09 18:28:03 +00:00
|
|
|
hugo --environment testing --templateMetrics --templateMetricsHints --cleanDestinationDir --destination public.%version% >> metrics.%version%.log
|
2023-06-08 15:59:03 +00:00
|
|
|
|
|
|
|
set "start_dir=%CD%\public.%version%"
|
|
|
|
set "output_file=dir.%version%.log"
|
|
|
|
if exist "%output_file%" del "%output_file%"
|
|
|
|
for /r "%start_dir%" %%F in (*) do (
|
|
|
|
set "file=%%F"
|
|
|
|
echo !file:%start_dir%\=! >> "%output_file%"
|
|
|
|
)
|
|
|
|
move /Y dir.%version%.log public.%version%\dir.log 2>&1 >NUL
|
|
|
|
|
|
|
|
move /Y metrics.%version%.log public.%version%\metrics.log 2>&1 >NUL
|
|
|
|
For /F "UseBackQ Delims==" %%A In ("public.%version%\metrics.log") Do Set "lastline=%%A"
|
2022-11-13 12:39:36 +00:00
|
|
|
echo %lastline%
|