20 lines
292 B
Bash
Executable file
20 lines
292 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. ./setarch.sh
|
|
|
|
pf=linux/$arch
|
|
img=autofw-$arch
|
|
|
|
srcdir=`pwd`/src-$arch
|
|
if [ ! -d $srcdir ]; then
|
|
mkdir -p $srcdir
|
|
cp -a src/ $srcdir/
|
|
fi
|
|
srcbind="--mount type=bind,source=$srcdir,target=/opt/autofw"
|
|
|
|
docker run --rm -ti \
|
|
--platform=$pf \
|
|
`echo $srcbind` \
|
|
$img \
|
|
/bin/zsh
|
|
|