diff options
Diffstat (limited to 'other/astyle/format-source')
-rwxr-xr-x | other/astyle/format-source | 8 |
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 | ||
51 | apidsl_curl() { | 51 | apidsl_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 | ||
69 | wait; wait; wait; wait; wait; wait; wait | 69 | wait; wait; wait; wait; wait; wait; wait |
70 | 70 | ||
71 | if grep '<unresolved>' */*.h; then | 71 | if 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 |
74 | fi | 74 | fi |
75 | 75 | ||
76 | CC_SOURCES=`find . '(' -name '*.cc' ')'` | 76 | CC_SOURCES=$(find . '(' -name '*.cc' ')') |
77 | CC_SOURCES="$CC_SOURCES toxcore/crypto_core.c" | 77 | CC_SOURCES="$CC_SOURCES toxcore/crypto_core.c" |
78 | CC_SOURCES="$CC_SOURCES toxcore/ping_array.c" | 78 | CC_SOURCES="$CC_SOURCES toxcore/ping_array.c" |
79 | 79 | ||
@@ -91,7 +91,7 @@ FIND="$FIND -and -not -wholename './super_donators/*'" | |||
91 | FIND="$FIND -and -not -wholename './third_party/*'" | 91 | FIND="$FIND -and -not -wholename './third_party/*'" |
92 | FIND="$FIND -and -not -wholename './toxencryptsave/crypto_pwhash*'" | 92 | FIND="$FIND -and -not -wholename './toxencryptsave/crypto_pwhash*'" |
93 | 93 | ||
94 | C_SOURCES=`eval "$FIND"` | 94 | C_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 | ||