Martin Kletzander
2018-Nov-19 22:08 UTC
[Libguestfs] [supermin PATCH] autogen: Run bootstrap if submodule is not initialized
This used to be the case before commit 30de2cb603cd. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> --- README | 1 - autogen.sh | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README b/README index 679bf7010bbe..e5187a65ed47 100644 --- a/README +++ b/README @@ -107,7 +107,6 @@ Building and installing If you're cloning this from git the first time, do: - ./bootstrap ./autogen.sh For normal builds, and building from the tarball: diff --git a/autogen.sh b/autogen.sh index 3a913e03a401..064df589d004 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,11 @@ set -e +# If the submodule is not initialized run bootstrap +if git submodule status .gnulib | grep -q '^-'; then + ./bootstrap +fi + # If no arguments were specified and configure has run before, use the previous # arguments if test $# -eq 0 && test -x ./config.status; then -- 2.19.1
Richard W.M. Jones
2018-Nov-19 22:25 UTC
Re: [Libguestfs] [supermin PATCH] autogen: Run bootstrap if submodule is not initialized
On Mon, Nov 19, 2018 at 11:08:47PM +0100, Martin Kletzander wrote:> This used to be the case before commit 30de2cb603cd. > > Signed-off-by: Martin Kletzander <mkletzan@redhat.com> > --- > README | 1 - > autogen.sh | 5 +++++ > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/README b/README > index 679bf7010bbe..e5187a65ed47 100644 > --- a/README > +++ b/README > @@ -107,7 +107,6 @@ Building and installing > > If you're cloning this from git the first time, do: > > - ./bootstrap > ./autogen.sh > > For normal builds, and building from the tarball: > diff --git a/autogen.sh b/autogen.sh > index 3a913e03a401..064df589d004 100755 > --- a/autogen.sh > +++ b/autogen.sh > @@ -2,6 +2,11 @@ > > set -e > > +# If the submodule is not initialized run bootstrap > +if git submodule status .gnulib | grep -q '^-'; then > + ./bootstrap > +fi > + > # If no arguments were specified and configure has run before, use the previous > # arguments > if test $# -eq 0 && test -x ./config.status; thenThanks - pushed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Maybe Matching Threads
- [PATCH libguestfs] build: make autogen.sh update .git-module-status, as it should
- [PATCH libguestfs] accommodate leading "+" in git submodule output
- Could this autogen.sh script be added?
- [PATCH] nut: add autogen.sh
- cvs: debian updates and autogen.sh trouble