diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-06-08 15:48:11 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-06-08 15:48:11 -0400 |
commit | 8f2bf4e6e97f3ff859653c6cf60010ce9a2ebca0 (patch) | |
tree | 46d7f11ead420e7967948cb4d2f0e43bdf835d2f | |
parent | de194dad617ef9c35fd03ac6bd8622ebdfa7eb77 (diff) | |
download | buildstream-8f2bf4e6e97f3ff859653c6cf60010ce9a2ebca0.tar.gz |
autotools plugin: Dont regenerate existing configure scripts
This closes #256
-rw-r--r-- | buildstream/plugins/elements/autotools.yaml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/buildstream/plugins/elements/autotools.yaml b/buildstream/plugins/elements/autotools.yaml index 97ab0664c..021d3815c 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 |