summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/init.sh
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/scripts/init.sh
parenta908eb0431a25e3228277991d94d6a4add8f5010 (diff)
downloadmanaverse-7890d8e082d5ab07d1ae92468166cac235721d4e.tar.gz
manaverse-7890d8e082d5ab07d1ae92468166cac235721d4e.tar.bz2
manaverse-7890d8e082d5ab07d1ae92468166cac235721d4e.tar.xz
manaverse-7890d8e082d5ab07d1ae92468166cac235721d4e.zip
Fix possible command line overflow in ci.
Diffstat (limited to 'tools/ci/scripts/init.sh')
-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