2006-10-12 02:36:34 +02:00
|
|
|
#!/usr/bin/env bash
|
2010-09-08 15:25:36 +02:00
|
|
|
gajimversion="0.14.0.1"
|
2010-08-09 13:09:13 +02:00
|
|
|
if [ -d ".hg" ]; then
|
2010-08-17 11:34:53 +02:00
|
|
|
node=$(hg tip --template "{node}")
|
|
|
|
hgversion="-${node:0:12}"
|
2010-08-09 13:09:13 +02:00
|
|
|
else
|
|
|
|
hgversion=""
|
|
|
|
fi
|
|
|
|
echo "define([AC_PACKAGE_VERSION], [${gajimversion}${hgversion}])" > m4/hgversion.m4
|
|
|
|
|
2007-11-23 01:08:13 +01:00
|
|
|
AM_ARGS="--add-missing --gnu --copy"
|
|
|
|
CONF_ARGS=""
|
2008-05-22 13:26:03 +02:00
|
|
|
if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then
|
2007-11-23 01:08:13 +01:00
|
|
|
. /Library/Frameworks/GTK+.framework/Versions/Current/env
|
|
|
|
AM_ARGS="${AM_ARGS} --ignore-deps"
|
|
|
|
CONF_ARGS="${CONF_ARGS} --disable-idle --without-x"
|
|
|
|
fi
|
|
|
|
|
2006-10-11 13:46:03 +02:00
|
|
|
echo "[encoding: UTF-8]" > po/POTFILES.in \
|
2010-03-12 20:06:43 +01:00
|
|
|
&& for p in `ls data/gui/*.ui`; do echo "[type: gettext/glade]$p" >> \
|
|
|
|
po/POTFILES.in; done \
|
|
|
|
&& ls -1 data/gajim.desktop.in.in \
|
2009-06-23 19:13:38 +02:00
|
|
|
src/*py src/common/*py src/common/zeroconf/*.py | grep -v ipython_view.py >> \
|
2006-10-11 13:46:03 +02:00
|
|
|
po/POTFILES.in || exit 1
|
2006-10-15 12:32:17 +02:00
|
|
|
if test -z `which pkg-config 2>/dev/null`;then
|
|
|
|
echo "***Error: pkg-config not found***"
|
|
|
|
echo "See README.html for build requirements."
|
|
|
|
exit 1
|
|
|
|
fi
|
2007-11-23 01:08:13 +01:00
|
|
|
|
2008-05-22 13:42:09 +02:00
|
|
|
which glibtoolize >/dev/null 2>&1 && LIBTOOLIZE="glibtoolize" || LIBTOOLIZE="libtoolize"
|
|
|
|
|
2009-01-15 18:10:11 +01:00
|
|
|
mkdir -p config
|
|
|
|
|
2006-10-05 17:44:08 +02:00
|
|
|
intltoolize --force --automake \
|
|
|
|
&& aclocal -I ./m4 \
|
2008-05-22 13:42:09 +02:00
|
|
|
&& $LIBTOOLIZE --copy --force --automake \
|
2006-10-05 17:08:07 +02:00
|
|
|
&& autoheader \
|
2006-10-11 19:40:56 +02:00
|
|
|
&& autoconf \
|
2007-11-14 20:47:52 +01:00
|
|
|
&& automake ${AM_ARGS} \
|
|
|
|
&& ./configure ${CONF_ARGS} $@
|