Skip to content

Commit

Permalink
Stop using mate-autogen in autogen.sh
Browse files Browse the repository at this point in the history
Was initially added to supress warnings no longer there.
  • Loading branch information
XRevan86 committed Feb 11, 2016
1 parent e2e3bf8 commit 674dabc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
srcdir=$(dirname "$0")
[ -z "$srcdir" ] && srcdir="."
cd "$srcdir"

PKG_NAME="libcompizconfig"

(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
if [ ! -f "$srcdir/configure.ac" ]; then
echo -n "**Error**: Directory "\`"$srcdir"\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
fi

which mate-autogen || {
echo "You need to install mate-common from the MATE Git"
exit 1
}

REQUIRED_AUTOMAKE_VERSION=1.9
USE_MATE2_MACROS=1

. mate-autogen
aclocal --install || exit 1
glib-gettextize --copy --force || exit 1
intltoolize --copy --force --automake || exit 1
autoreconf --verbose --force --install || exit 1

cd "$OLDPWD" || exit $?
if [ -z "$NOCONFIGURE" ]; then
"$srcdir/configure" "$@" || exit 1
fi

0 comments on commit 674dabc

Please sign in to comment.