summaryrefslogtreecommitdiff
path: root/doc/autogen.sh.example
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-10-20 11:27:46 +0300
committermonsta <[email protected]>2015-10-20 11:31:24 +0300
commit5aac4bf9650cca208f7da857e022e7492e2f8d25 (patch)
treecd5e078e1c00b5f7c06b50d5ee00ec4ff166619f /doc/autogen.sh.example
parentc6cb673fc7001d13c3c821a3fbd542a3388cfaac (diff)
downloadmate-common-5aac4bf9650cca208f7da857e022e7492e2f8d25.tar.bz2
mate-common-5aac4bf9650cca208f7da857e022e7492e2f8d25.tar.xz
update example script from upstream and just mention it in usage.txt
(instead of listing the whole script in it)
Diffstat (limited to 'doc/autogen.sh.example')
-rw-r--r--doc/autogen.sh.example28
1 files changed, 10 insertions, 18 deletions
diff --git a/doc/autogen.sh.example b/doc/autogen.sh.example
index 8f50492..1114c76 100644
--- a/doc/autogen.sh.example
+++ b/doc/autogen.sh.example
@@ -1,27 +1,19 @@
#!/bin/sh
-srcdir=`basename $0`
+
+srcdir=`dirname $0`
[ -z "$srcdir" ] && srcdir=.
PKG_NAME=mate-package
-REQUIRED_AUTOMAKE_VERSION=1.7
-if [ ! -f "$srcdir/somefile-that-is-only-in-mate-package" ]; then
-echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2
-exit 1
+if [ ! -f "$srcdir/configure.ac" ]; then
+ echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2
+ exit 1
fi
-. mate-autogen
+which mate-autogen.sh || {
+ echo "You need to install mate-common"
+ exit 1
+}
+. mate-autogen
-# Then put the following in your configure.ac or configure.in file:
-# MATE_COMMON_INIT
-#
-# This macro is equivalent to the following two lines (which you can use
-# instead if you don't want to depend on mate-common macros):
-# AC_SUBST([ACLOCAL_AMFLAGS], ["\${ACLOCAL_FLAGS}"])
-#
-# Or if you are using the AC_CONFIG_MACRO_DIR macro:
-# AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
-#
-# This will make sure that autoconf macros will be found when you
-# rebuild the package without rerunning autogen.sh.