[QGIS Commit] r12481 - trunk/qgis/scripts

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Dec 15 16:40:39 EST 2009


Author: jef
Date: 2009-12-15 16:40:37 -0500 (Tue, 15 Dec 2009)
New Revision: 12481

Modified:
   trunk/qgis/scripts/astyle-all.sh
Log:
update astyle-all.sh

Modified: trunk/qgis/scripts/astyle-all.sh
===================================================================
--- trunk/qgis/scripts/astyle-all.sh	2009-12-15 20:59:25 UTC (rev 12480)
+++ trunk/qgis/scripts/astyle-all.sh	2009-12-15 21:40:37 UTC (rev 12481)
@@ -8,9 +8,20 @@
 
 find src -type f -print | while read f; do
 	case "$f" in
+	src/core/spatialite/*)
+		continue
+		;;
+
+
         *.cpp|*.h|*.c|*.h|*.cxx|*.hxx|*.c++|*.h++|*.cc|*.hh|*.C|*.H)
+                cmd=astyle.sh
                 ;;
 
+	*.ui|*.qgm|*.txt|*.t2t|*.py|*.sip|resources/context_help/*)
+		cmd="flip -ub"
+		;;
+
+
         *)
                 continue
                 ;;
@@ -26,23 +37,8 @@
                 touch -r "$f" "$f.astyle"
         fi
 
-  	echo -ne "Reformating $f$elcr"
-	astyle.sh "$f"
+  	echo -ne "Reformating $f $elcr"
+	$cmd "$f"
 done
 
 echo
-
-# convert CRLF to LF
-find .. -type f \
-  ! -path "*/.svn/*" \
-  ! -path "*/win_build/*" \
-  ! -name "*.def" \
-  ! -name "*.rc" \
-  ! -name "*.png" \
-  -exec file {} \; |
-  grep CRLF |
-  cut -d: -f1 |
-  while read f; do
-  	echo -ne "Flipping $f$elcr"
-	flip -ub "$f"
-  done



More information about the QGIS-commit mailing list