-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.bat
More file actions
23 lines (23 loc) · 1 KB
/
Copy pathcode.bat
File metadata and controls
23 lines (23 loc) · 1 KB
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
break > code.txt
for /r %%f in (*) do (
echo %%f | findstr /i "\.git\ \third_party\ \Fonts\ \icons\ \Wallpaper\ \Firmware\ \Inbuilt Devices\ " >nul
if errorlevel 1 (
echo %%f | findstr /i "\.png$ \.raw$ \.svg$ \.ttf$ \.exe$ \.bin$ \.tar\.gz$ \.obj$ \.lib$ \.dll$ \.sys$ \.ico$ \.dat$" >nul
if errorlevel 1 (
echo %%f | findstr /i "\.sh$" >nul
if errorlevel 1 (
echo %%f | findstr /i "\\LICENSE$ \\README\.md$ \\code\.txt$" >nul
if errorlevel 1 (
echo ================================================== >> code.txt
echo FILE: %%f >> code.txt
echo ================================================== >> code.txt
type "%%f" >> code.txt
echo. >> code.txt
echo. >> code.txt
)
)
)
)
)
echo Done! All source and text files (excluding .git and code.txt) have been exported to code.txt.