mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
added helper generate_credits.bat
This commit is contained in:
parent
1e498adb1b
commit
8d5c5134c1
1741
CREDITS.md
1741
CREDITS.md
File diff suppressed because it is too large
Load Diff
26
generate_credits.bat
Normal file
26
generate_credits.bat
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal EnableDelayedExpansion
|
||||||
|
cd /d "%~dp0"
|
||||||
|
|
||||||
|
set "CREDITS_FILE=CREDITS.md"
|
||||||
|
|
||||||
|
if exist "%CREDITS_FILE%" (
|
||||||
|
del /f /s /q "%CREDITS_FILE%"
|
||||||
|
)
|
||||||
|
|
||||||
|
set "GLOB=third-party libs tools\steamclient_loader"
|
||||||
|
set "FILTER=SOURCE.txt"
|
||||||
|
|
||||||
|
echo:# Many thanks for these sources>> "%CREDITS_FILE%"
|
||||||
|
|
||||||
|
for %%A in (%GLOB%) do (
|
||||||
|
powershell -Command "Get-ChildItem -LiteralPath \"%%~A\" -Filter \"%FILTER%\" -File -Recurse | foreach { $parent = Split-Path -Path $_.FullName -Parent; $relative = (Resolve-Path -Path $parent -Relative).replace(\".\\\",\"\"); Write-Output \"- ^[$^($relative^)^]^(#$^($relative^)^)\"; }">> "%CREDITS_FILE%"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo.>> "%CREDITS_FILE%"
|
||||||
|
|
||||||
|
for %%B in (%GLOB%) do (
|
||||||
|
powershell -Command "Get-ChildItem -LiteralPath \"%%~B\" -Filter \"%FILTER%\" -File -Recurse | foreach { $parent = Split-Path -Path $_.FullName -Parent; $relative = (Resolve-Path -Path $parent -Relative).replace(\".\\\",\"\"); Write-Output \"### $^($relative^)\"; Write-Output \"\"; Get-Content -LiteralPath $_.FullName -Raw -Encoding utf8; }">> "%CREDITS_FILE%"
|
||||||
|
)
|
||||||
|
|
||||||
|
endlocal
|
Loading…
Reference in New Issue
Block a user