mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 06:32:23 +00:00
28e311d2b9
... while building in docker Signed-off-by: Alexey Neyman <stilor@att.net>
26 lines
539 B
Bash
Executable File
26 lines
539 B
Bash
Executable File
#!/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
|
|
make
|
|
make install
|
|
cd ..
|
|
rm -rf crosstool-ng
|