#!/bin/bash

mkdir tmp
cd ..

dir=`pwd`

export CC=gcc
export CXX=g++

export LANG=C

export CXXFLAGS="-g -pg -fno-inline -fno-omit-frame-pointer -Wno-attributes"

autoreconf -i
cd build/tmp
../../configure --prefix=$dir/run \
--datadir=$dir/run/share/games \
--bindir=$dir/run/bin \
--mandir=$dir/run/share/man

cd po
make -j8 update-gmo 2>../../make1.log
cd ..
make -j8 2>../make2.log