mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 06:37:34 +08:00
Working on formatting.
This commit is contained in:
+4
-3
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
echo pwd:$PWD
|
||||
format=$1
|
||||
astyle=$1
|
||||
format=$2
|
||||
format_wildcards="""
|
||||
./matrix/*.*pp
|
||||
./test/*.*pp
|
||||
@@ -9,10 +10,10 @@ format_wildcards="""
|
||||
if [[ $format ]]
|
||||
then
|
||||
echo formatting
|
||||
astyle ${format_wildcards}
|
||||
$astyle ${format_wildcards}
|
||||
else
|
||||
echo checking format
|
||||
astyle --dry-run ${format_wildcards} | grep Formatted
|
||||
$astyle --dry-run ${format_wildcards} | grep Formatted
|
||||
if [[ $? -eq 0 ]]
|
||||
then
|
||||
echo need to format
|
||||
|
||||
Reference in New Issue
Block a user