blob: 4811ff5ae4568f3403f91d0a5c63cccc693f037e (
plain) (
tree)
|
|
#!/bin/bash
# ./build.sh | builds the project without linting
# ./build.sh lint | builds the project with linting (src, data, po)
# ./build.sh lintonly | just linting (src, data, po)
dir=`pwd`
if [[ ! -d "${dir}/src" ]]; then
echo "you can only build in the root directory of the project."
exit 1
fi
if [[ $1 == lin* ]]; then
if [[ ! -d "logs" ]]; then
mkdir -p logs
fi
echo "that can take a while, go make some coffee, tea... build a house, watch some movies... ^^'"
./tools/ci/jobs/mplint.sh src | tee logs/mplint_src.log
./tools/ci/jobs/mplint.sh po | tee logs/mplint_po.log
./tools/ci/jobs/mplint.sh data | tee logs/mplint_data.log
./tools/ci/jobs/cpplint.sh | tee logs/cpplint.log
fi
if [[ $1 != lintonly ]]; then
autoreconf -i
./configure --prefix=$dir/run \
--datadir=$dir/run/share/games \
--bindir=$dir/run/bin \
--mandir=$dir/run/share/man $*
cd po
make update-gmo
cd ..
make
mkdir run
make install
fi
|