Skip to content

Commit 3f04372

Browse files
authored
chore: add script to cleanup source code and documentation (#573)
1 parent 6cb00c5 commit 3f04372

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Scripts/clean_up_text.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# replace tabs
2+
git ls-files -z '*.cs' '*.md' '*.shader' '*.cginc' '*.hlsl' | xargs -0 sed -Ei 's/\t/ /g'
3+
4+
# remove UTF-8 BOM, and trailing spaces or tabs at the end of lines
5+
git ls-files -z '*.cs' '*.md' '*.shader' '*.cginc' '*.hlsl' | xargs -0 sed -Ei 's/\r//g;s/\s+$//;s/\xef\xbb\xbf//g'
6+

0 commit comments

Comments
 (0)