forked from swift502/Sketchbook
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpaths.bat
More file actions
23 lines (19 loc) · 722 Bytes
/
Copy pathpaths.bat
File metadata and controls
23 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
:: Change directory to the folder where the script is located
cd /d "%~dp0"
:: Clear the content of paths.txt if it already exists
echo. > paths.txt
:: Search for all .d.ts files and append their relative paths to paths.txt
for /r %%f in (*.ts) do (
set "relativePath=%%f"
setlocal enabledelayedexpansion
:: Remove the base directory path from the full path
set "relativePath=!relativePath:%cd%\=!"
echo !relativePath! >> paths.txt
endlocal
)
echo All relative .d.ts file paths have been written to paths.txt.
for %%f in (src\examples\*.ts) do (
:: Generate the diff and save it to a .txt file
git log -p -n 100 -- %%f > src\examples\diffs\%%~nf.ts.txt
)