autofw/run.sh

19 lines
296 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/
fi
docker run --rm -ti \
--platform=$pf \
--mount type=bind,source=$repodir,target=/opt/autofw \
$img \
/bin/zsh