21 lines
350 B
Bash
Executable file
21 lines
350 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. ./setarch.sh
|
|
|
|
pf=linux/$arch
|
|
img=autofw-$arch
|
|
|
|
repodir=`pwd`/repo-$arch
|
|
if [ ! -d $repodir ]; then
|
|
mkdir -p $repodir
|
|
cp -a `git ls-files . | grep -v /` $repodir/
|
|
# else
|
|
# echo maybe run this: rsync -av src $repodir
|
|
fi
|
|
|
|
docker run --rm -ti \
|
|
--platform=$pf \
|
|
--mount type=bind,source=$repodir,target=/opt/autofw \
|
|
$img \
|
|
/bin/zsh
|
|
|