Blame synfig-studio/bootstrap.sh

0bdb5b
#!/bin/sh
0bdb5b
3ab2ff
set -e
3ab2ff
Rodolfo Ribeiro Gomes a88fc5
AUTORECONF=`command -v autoreconf || true` #if don't set true, script fails with no messages
Rodolfo Ribeiro Gomes a88fc5
if [ -z $AUTORECONF ]; then
034423
        echo "*** No autoreconf found, please install it ***"
034423
        exit 1
034423
fi
034423
dbee69
INTLTOOLIZE=`command -v intltoolize || true`
Rodolfo Ribeiro Gomes a88fc5
if [ -z $INTLTOOLIZE ]; then
034423
        echo "*** No intltoolize found, please install the intltool package ***"
034423
        exit 1
034423
fi
034423
Rodolfo Ribeiro Gomes a88fc5
echo "running autopoint..."
034423
autopoint --force
Rodolfo Ribeiro Gomes a88fc5
Rodolfo Ribeiro Gomes a88fc5
echo "running autoreconf..."
034423
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
973958
973958
# WORKAROUND 2013-08-15:
973958
# Patch the generated po/Makefile.in.in file so that locale files are installed
973958
# in the correct location on OS X and Free-BSD systems.  This is a workaround
973958
# for a bug in intltool.  
973958
# See https://launchpad.net/bugs/398571 and https://bugs.launchpad.net/bugs/992047
973958
#
973958
# TODO: Drop this hack, and bump our intltool version requiement once the issue
973958
#       is fixed in intltool
973958
Rodolfo Ribeiro Gomes a88fc5
echo "patching po/Makefile.in.in..."
48c969
sed 's/itlocaledir = $(prefix)\/$(DATADIRNAME)\/locale/itlocaledir = $(datarootdir)\/locale/' < po/Makefile.in.in > po/Makefile.in.in.tmp
Rodolfo Ribeiro Gomes a88fc5
# -- force didn't work under MacOS
az 53f712
mv -f po/Makefile.in.in.tmp po/Makefile.in.in
973958
034423
echo "Done! Please run ./configure now."