Commit 71247e64 authored by Marat Radchenko's avatar Marat Radchenko Committed by Pierre-Luc Bacon

[PATCH] Improved autogen.sh scripts

1. They do not require bash anymore
2. Added workaround for Debian bug #565663
3. Replaced manual autotools invocations with single autoreconf call
4. Non-zero return status on failure
parent ae6faeab
#!/bin/bash
#!/bin/sh -e
function autocmd()
{
echo "Running ${1}..."
$* || {
echo "Error running ${1}"
exit 1
}
}
# Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663
[ ! -e m4 ] && mkdir m4
gnome-doc-prepare --force
autocmd libtoolize --force --copy
autocmd aclocal
autocmd autoheader
autocmd autoconf -f
autocmd automake --add-missing --force-missing --copy -Wall
autoreconf --force --install --verbose -Wall -I m4
#!/bin/bash
#!/bin/sh -e
function autocmd()
{
echo "Running ${1}..."
$* || {
echo "Error running ${1}"
exit 1
}
}
autocmd libtoolize --force --copy
autocmd aclocal
autocmd autoheader
autocmd autoconf -f
autocmd automake --add-missing --force-missing --copy -Wall
# Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663
[ ! -e m4 ] && mkdir m4
autoreconf --force --install --verbose -Wall -I m4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment