[Spice-devel] [PATCH] build: Add autogen.sh convenience script
Daniel P. Berrangé
berrange at redhat.com
Fri Feb 16 15:28:41 UTC 2018
On Fri, Feb 16, 2018 at 04:18:19PM +0100, Christophe de Dinechin wrote:
> From: Christophe de Dinechin <dinechin at redhat.com>
>
> Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
> ---
> autogen.sh | 9 +++++++++
> 1 file changed, 9 insertions(+)
> create mode 100755 autogen.sh
>
> diff --git a/autogen.sh b/autogen.sh
> new file mode 100755
> index 0000000..afa3e39
> --- /dev/null
> +++ b/autogen.sh
This assumes you're running autogen.sh from the source tree. Many folks
prefer todo a vpath builds, so it might be invoked from outside the
source tree like
mkdir build
cd build
../autogen.sh
> @@ -0,0 +1,9 @@
> +#!/bin/sh
> +
> +set -e # exit on errors
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
> +
> +autoreconf --verbose --force --install
cd $THEDIR
> +
> +if [ -z "$NOCONFIGURE" ]; then
> + ./configure ${1+"$@"}
$srcdir/configure ....
> +fi
would make it cope with VPATH builds.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the Spice-devel
mailing list