File tree 1 file changed +14
-9
lines changed
1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 48
48
49
49
if [ -z " $MODIFIED " ]; then
50
50
echo nothing was modified
51
- exit 1
51
+ exit 0
52
52
fi
53
53
54
54
# save original changes
@@ -67,12 +67,15 @@ ASTYLEDIFF=astyle.$REV.diff
67
67
for f in $MODIFIED ; do
68
68
case " $f " in
69
69
src/core/spatialite/* |src/core/gps/qextserialport/* |src/plugins/dxf2shp_converter/dxflib/src/* |src/plugins/globe/osgEarthQt/* |src/plugins/globe/osgEarthUtil/* )
70
- echo $f skipped
70
+ echo $f skipped
71
71
continue
72
72
;;
73
73
74
- * .cpp|* .c|* .h|* .cxx|* .hxx|* .c++|* .h++|* .cc|* .hh|* .C|* .H)
75
- ;;
74
+ * .cpp|* .c|* .h|* .cxx|* .hxx|* .c++|* .h++|* .cc|* .hh|* .C|* .H)
75
+ if [ -x " $f " ]; then
76
+ chmod a-x " $f "
77
+ fi
78
+ ;;
76
79
77
80
* .py)
78
81
perl -i.prepare -pe " s/[\t ]+$//;" $f
@@ -83,12 +86,12 @@ for f in $MODIFIED; do
83
86
continue
84
87
;;
85
88
86
- * )
87
- continue
88
- ;;
89
- esac
89
+ * )
90
+ continue
91
+ ;;
92
+ esac
90
93
91
- m=$f .$REV .prepare
94
+ m=$f .$REV .prepare
92
95
93
96
cp $f $m
94
97
astyle.sh $f
111
114
fi
112
115
113
116
exit 0
117
+
118
+ # vim: set ts=8 noexpandtab :
You can’t perform that action at this time.
0 commit comments