Skip to content

Commit 7735cda

Browse files
author
Ben Herila
committed
Added scripts to fix code formatting
1 parent ce881a3 commit 7735cda

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

fixnewlines.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
expand_func () {
4+
dos2unix -n "$1" "$1.tmp"
5+
mv "$1.tmp" "$1"
6+
}
7+
8+
export -f expand_func
9+
10+
find . -name \*.cs -exec bash -c 'expand_func {}' \;
11+

fixtabs.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
expand_func () {
4+
expand -t 4 "$1" > "$1.tmp"
5+
mv "$1.tmp" "$1"
6+
}
7+
8+
export -f expand_func
9+
10+
find src -name \*.cs -exec bash -c 'expand_func {}' \;
11+

0 commit comments

Comments
 (0)