gnucash/util/ci/arch-testscript
Geert Janssens 02c69a7933 Handle situation where gettext 0.19.6 is not available
By default we require gettext 0.19.6 as this is needed to generate a translated version of gnucash.desktop and gnucash.appdata.xml.
However this version is not available on some platforms (most notably our own ubuntu 14.04LTS travis instance).
By setting ALLOW_OLD_GETTEXT=ON, the build configuration falls back to generating untranslated versions of said files instead.
2018-02-27 22:38:27 +01:00

21 lines
607 B
Bash

#!/bin/bash -le
#-l above (login shell) so that /etc/profile runs so that perl is
# on the path.
#-e so that if any command has an exit code != 0, this script will
# exit immediately.
# Python is python 3, but gnucash doesn't work with python 3. There
# doesn't seem to be a way to tell automake to use /usr/bin/python2,
# so we'll mock this up
mkdir ourpython_bin
ln -s /usr/bin/python2 ourpython_bin/python
export PATH=/ourpython_bin:"$PATH"
export PLATFORM_CMAKE_OPTS=
echo path is "$PATH"
echo python version is "$(python --version)"
echo PLATFORM_CMAKE_OPTS= "$PLATFORM_CMAKE_OPTS"
../commonbuild