summaryrefslogtreecommitdiff
path: root/other/astyle/format-source
diff options
context:
space:
mode:
Diffstat (limited to 'other/astyle/format-source')
-rwxr-xr-xother/astyle/format-source8
1 files changed, 4 insertions, 4 deletions
diff --git a/other/astyle/format-source b/other/astyle/format-source
index 711823d8..193e335c 100755
--- a/other/astyle/format-source
+++ b/other/astyle/format-source
@@ -49,7 +49,7 @@ apidsl_request() {
49} 49}
50 50
51apidsl_curl() { 51apidsl_curl() {
52 echo "apidsl_curl $@" >&2 52 echo "apidsl_curl $*" >&2
53 apidsl_request "c" <( 53 apidsl_request "c" <(
54 apidsl_request "parse" <( 54 apidsl_request "parse" <(
55 perl -0777 -pe "$TO_JSON" $1)) | perl -0777 -pe "$FROM_JSON" 55 perl -0777 -pe "$TO_JSON" $1)) | perl -0777 -pe "$FROM_JSON"
@@ -68,12 +68,12 @@ set -x
68 68
69wait; wait; wait; wait; wait; wait; wait 69wait; wait; wait; wait; wait; wait; wait
70 70
71if grep '<unresolved>' */*.h; then 71if grep '<unresolved>' ./*/*.h; then
72 echo "error: some apidsl references were unresolved" 72 echo "error: some apidsl references were unresolved"
73 exit 1 73 exit 1
74fi 74fi
75 75
76CC_SOURCES=`find . '(' -name '*.cc' ')'` 76CC_SOURCES=$(find . '(' -name '*.cc' ')')
77CC_SOURCES="$CC_SOURCES toxcore/crypto_core.c" 77CC_SOURCES="$CC_SOURCES toxcore/crypto_core.c"
78CC_SOURCES="$CC_SOURCES toxcore/ping_array.c" 78CC_SOURCES="$CC_SOURCES toxcore/ping_array.c"
79 79
@@ -91,7 +91,7 @@ FIND="$FIND -and -not -wholename './super_donators/*'"
91FIND="$FIND -and -not -wholename './third_party/*'" 91FIND="$FIND -and -not -wholename './third_party/*'"
92FIND="$FIND -and -not -wholename './toxencryptsave/crypto_pwhash*'" 92FIND="$FIND -and -not -wholename './toxencryptsave/crypto_pwhash*'"
93 93
94C_SOURCES=`eval "$FIND"` 94C_SOURCES=$(eval "$FIND")
95 95
96$ASTYLE -n --options=other/astyle/astylerc $C_SOURCES 96$ASTYLE -n --options=other/astyle/astylerc $C_SOURCES
97 97