summaryrefslogtreecommitdiff
path: root/tools/ci
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 20:48:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 20:48:17 +0300
commit7890d8e082d5ab07d1ae92468166cac235721d4e (patch)
treed9228517fe8613fcb7ea1ebee0e046ff8f8e09fe /tools/ci
parenta908eb0431a25e3228277991d94d6a4add8f5010 (diff)
downloadplus-7890d8e082d5ab07d1ae92468166cac235721d4e.tar.gz
plus-7890d8e082d5ab07d1ae92468166cac235721d4e.tar.bz2
plus-7890d8e082d5ab07d1ae92468166cac235721d4e.tar.xz
plus-7890d8e082d5ab07d1ae92468166cac235721d4e.zip
Fix possible command line overflow in ci.
Diffstat (limited to 'tools/ci')
-rwxr-xr-xtools/ci/scripts/init.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index c82d248d9..d71f99b4e 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -221,8 +221,16 @@ function run_check_warnings {
function run_h {
rm $ERRFILE
- echo "$CC -c -x c++ $* $includes */*/*/*/*.h */*/*/*.h */*/*.h */*.h *.h"
- $CC -c -x c++ $* $includes */*/*/*/*.h */*/*/*.h */*/*.h */*.h *.h 2>$ERRFILE
+ echo "$CC -c -x c++ $* $includes */*/*/*/*.h"
+ $CC -c -x c++ $* $includes */*/*/*/*.h 2>$ERRFILE
+ echo "$CC -c -x c++ $* $includes */*/*/*.h"
+ $CC -c -x c++ $* $includes */*/*/*.h 2>>$ERRFILE
+ echo "$CC -c -x c++ $* $includes */*/*.h"
+ $CC -c -x c++ $* $includes */*/*.h 2>>$ERRFILE
+ echo "$CC -c -x c++ $* $includes */*.h"
+ $CC -c -x c++ $* $includes */*.h 2>>$ERRFILE
+ echo "$CC -c -x c++ $* $includes *.h"
+ $CC -c -x c++ $* $includes *.h 2>>$ERRFILE
DATA=$(cat $ERRFILE)
if [ "$DATA" != "" ];
then