diff options
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/docker/common-scripts/ctng-install | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/testing/docker/common-scripts/ctng-install b/testing/docker/common-scripts/ctng-install index 6994fd5d..1efd2644 100755 --- a/testing/docker/common-scripts/ctng-install +++ b/testing/docker/common-scripts/ctng-install @@ -1,7 +1,25 @@ #!/bin/bash set -e +# Mounted directory may already be configured - or may not +# even had bootstrapped. +tar cf - -C / \ + --exclude=crosstool-ng/.build \ + --exclude=crosstool-ng/.build.all \ + --exclude=crosstool-ng/.git \ + --exclude=crosstool-ng/testing/docker \ + crosstool-ng | \ + tar xf - +cd crosstool-ng +if [ -r Makefile ]; then + make distclean +elif [ ! -r configure ]; then + ./bootstrap +fi +cd .. cd work -/crosstool-ng/configure --prefix=/opt/ctng +~/crosstool-ng/configure --prefix=/opt/ctng make make install +cd .. +rm -rf crosstool-ng |