diff options
author | Alexey Neyman <stilor@att.net> | 2018-09-28 11:44:48 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-09-28 11:53:55 -0700 |
commit | 9d7c783a93dd4693a009aae5e99156c1f187acaf (patch) | |
tree | 701785c1e51328cc05da10adabcc1bee03288914 /testing/docker/common-scripts | |
parent | efe65615d053f29d25fdf5fe787b267e4609d9cf (diff) | |
download | crosstool-ng-9d7c783a93dd4693a009aae5e99156c1f187acaf.tar.gz crosstool-ng-9d7c783a93dd4693a009aae5e99156c1f187acaf.tar.bz2 crosstool-ng-9d7c783a93dd4693a009aae5e99156c1f187acaf.zip |
Make dockerfiles a bit more consistent
... and add Mint 19 and CentOS 6. The latter currently fails in
ctng's configure due to an old libtool; need to make libtool
optional.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'testing/docker/common-scripts')
-rwxr-xr-x | testing/docker/common-scripts/ctng-build-sample | 10 | ||||
-rwxr-xr-x | testing/docker/common-scripts/ctng-install | 8 | ||||
-rwxr-xr-x | testing/docker/common-scripts/ctng-test-basic | 2 | ||||
-rwxr-xr-x | testing/docker/common-scripts/su-as-user | 17 |
4 files changed, 10 insertions, 27 deletions
diff --git a/testing/docker/common-scripts/ctng-build-sample b/testing/docker/common-scripts/ctng-build-sample index 3f21478d..6a6de6a0 100755 --- a/testing/docker/common-scripts/ctng-build-sample +++ b/testing/docker/common-scripts/ctng-build-sample @@ -2,8 +2,8 @@ set -e cd -rm -rf bld-samples -mkdir bld-samples -cd bld-samples -export PATH=$HOME/inst-ctng/bin:$PATH -ct-ng build-all ${1+CT_SAMPLES="$*"} +rm -rf work/bld-samples +mkdir -p work/bld-samples work/inst-xtools +cd work/bld-samples +export PATH=$HOME/work/inst-ctng/bin:$PATH +ct-ng build-all CT_PREFIX=$HOME/work/inst-xtools ${1+CT_SAMPLES="$*"} diff --git a/testing/docker/common-scripts/ctng-install b/testing/docker/common-scripts/ctng-install index f29093a9..500cb73d 100755 --- a/testing/docker/common-scripts/ctng-install +++ b/testing/docker/common-scripts/ctng-install @@ -2,9 +2,9 @@ set -e cd -rm -rf bld-ctng -mkdir bld-ctng -cd bld-ctng -/crosstool-ng/configure --prefix=$HOME/inst-ctng +rm -rf work/bld-ctng work/inst-ctng +mkdir work/bld-ctng +cd work/bld-ctng +/crosstool-ng/configure --prefix=$HOME/work/inst-ctng make make install diff --git a/testing/docker/common-scripts/ctng-test-basic b/testing/docker/common-scripts/ctng-test-basic index 75412e1e..0edb8998 100755 --- a/testing/docker/common-scripts/ctng-test-basic +++ b/testing/docker/common-scripts/ctng-test-basic @@ -2,7 +2,7 @@ set -e cd -export PATH=$HOME/inst-ctng/bin:$PATH +export PATH=$HOME/work/inst-ctng/bin:$PATH ct-ng help ct-ng list-samples ct-ng list-steps diff --git a/testing/docker/common-scripts/su-as-user b/testing/docker/common-scripts/su-as-user deleted file mode 100755 index 436eb54c..00000000 --- a/testing/docker/common-scripts/su-as-user +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -usr=$1 -uid=$2 -grp=$3 -gid=$4 -shift 4 - -groupadd -g ${gid} ${grp} -useradd -d /home/${usr} -m -g ${gid} -u ${uid} ${usr} -rm -f /home/${usr}/src -ln -sf /src /home/${usr}/src -if [ -z "$*" ]; then - exec su -l ${usr} -else - exec su -l -c "/bin/bash -c '$*'" ${usr} -fi |