Commit a2adb22 jef
committed
1 parent 3ee7056 commit a2adb22 Copy full SHA for a2adb22
File tree 1 file changed +13
-17
lines changed
1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,20 @@ export elcr="$(tput el)$(tput cr)"
8
8
9
9
find src -type f -print | while read f; do
10
10
case " $f " in
11
+ src/core/spatialite/* )
12
+ continue
13
+ ;;
14
+
15
+
11
16
* .cpp|* .h|* .c|* .h|* .cxx|* .hxx|* .c++|* .h++|* .cc|* .hh|* .C|* .H)
17
+ cmd=astyle.sh
12
18
;;
13
19
20
+ * .ui|* .qgm|* .txt|* .t2t|* .py|* .sip|resources/context_help/* )
21
+ cmd=" flip -ub"
22
+ ;;
23
+
24
+
14
25
* )
15
26
continue
16
27
;;
@@ -26,23 +37,8 @@ find src -type f -print | while read f; do
26
37
touch -r " $f " " $f .astyle"
27
38
fi
28
39
29
- echo -ne " Reformating $f$elcr "
30
- astyle.sh " $f "
40
+ echo -ne " Reformating $f $elcr "
41
+ $cmd " $f "
31
42
done
32
43
33
44
echo
34
-
35
- # convert CRLF to LF
36
- find .. -type f \
37
- ! -path " */.svn/*" \
38
- ! -path " */win_build/*" \
39
- ! -name " *.def" \
40
- ! -name " *.rc" \
41
- ! -name " *.png" \
42
- -exec file {} \; |
43
- grep CRLF |
44
- cut -d: -f1 |
45
- while read f; do
46
- echo -ne " Flipping $f$elcr "
47
- flip -ub " $f "
48
- done
You can’t perform that action at this time.
0 commit comments