From 8f2bf4e6e97f3ff859653c6cf60010ce9a2ebca0 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> Date: Fri, 8 Jun 2018 15:48:11 -0400 Subject: [PATCH] autotools plugin: Dont regenerate existing configure scripts This closes #256 --- buildstream/plugins/elements/autotools.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/buildstream/plugins/elements/autotools.yaml b/buildstream/plugins/elements/autotools.yaml index 97ab0664ce..021d3815c2 100644 --- a/buildstream/plugins/elements/autotools.yaml +++ b/buildstream/plugins/elements/autotools.yaml @@ -4,10 +4,12 @@ variables: autogen: | export NOCONFIGURE=1; - if [ -e autogen ]; then ./autogen; - elif [ -e autogen.sh ]; then ./autogen.sh; - elif [ -e bootstrap ]; then ./bootstrap; - elif [ -e bootstrap.sh ]; then ./bootstrap.sh; + + if [ -x %{conf-cmd} ]; then true; + elif [ -x autogen ]; then ./autogen; + elif [ -x autogen.sh ]; then ./autogen.sh; + elif [ -x bootstrap ]; then ./bootstrap; + elif [ -x bootstrap.sh ]; then ./bootstrap.sh; else autoreconf -ivf; fi -- GitLab