aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2011-06-24 15:25:17 +0100
committerJavier Jardón <javier.jardon@codethink.co.uk>2011-06-24 15:25:17 +0100
commite2d0b048d348a415ad97298489af6d706a773c54 (patch)
tree2f6e5bb5af1103017529305144b5e4caf4fe4c77 /autogen.sh
downloadayatana-indicator-power-e2d0b048d348a415ad97298489af6d706a773c54.tar.gz
ayatana-indicator-power-e2d0b048d348a415ad97298489af6d706a773c54.tar.bz2
ayatana-indicator-power-e2d0b048d348a415ad97298489af6d706a773c54.zip
Initial commit
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..1912c87
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd $srcdir
+
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+ echo "*** No autoreconf found, please intall it ***"
+ exit 1
+fi
+
+INTLTOOLIZE=`which intltoolize`
+if test -z $INTLTOOLIZE; then
+ echo "*** No intltoolize found, please install the intltool package ***"
+ exit 1
+fi
+
+mkdir -p build-aux
+
+autopoint --force
+AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
+
+cd $olddir
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"