summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/mplint.sh
blob: 42ca901d53d29662edf0e8863737da39e9777055 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash

export CC=gcc
export CXX=g++

if [ "$NEWCC" != "" ]; then
    export CC="$NEWCC"
fi
if [ "$NEWCXX" != "" ]; then
    export CXX="$NEWCXX"
fi

export LOGFILE=mplint_po.log

source ./tools/ci/scripts/init.sh

export CXXFLAGS="-std=gnu++11"

do_init

rm -rf mplint || true
gitclone https://git.themanaworld.org/ewewukek mplint.git
cd mplint
git checkout pcre2
run_configure_simple
run_make
cd ..
echo " " >config.h
for task in "$@"; do
    run_mplint $task
done

source ./tools/ci/scripts/exit.sh

exit 0