diff options
author | Alexey Neyman <stilor@att.net> | 2019-03-01 01:35:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-01 01:35:38 (GMT) |
commit | c4126d9397353a74ca5aff602dd2c0c527e1dd07 (patch) | |
tree | ad57c42120f56c2a6e16709553b5960684dd3228 /testing/docker/common-scripts | |
parent | f208f0f782586cd3e2e1c897cf631ad5a8f9ba93 (diff) | |
parent | 28e311d2b91d5df019eadcf580d653fc2033fa2e (diff) |
Merge pull request #1156 from stilor/more-docker-stuff
More docker stuff
Diffstat (limited to 'testing/docker/common-scripts')
-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 6994fd5..1efd264 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 |