ezpp-oppai-ap/package

17 lines
384 B
Plaintext
Raw Normal View History

2021-06-25 18:26:13 +00:00
#!/bin/sh
dir=$(dirname $0)
dir=$(readlink -f $dir)
prevdir=$(pwd)
cd $dir
#git pull origin master || exit $?
for prefix in i386/ ""; do
container="${prefix}oppai-ng:ubuntu"
docker build -t "$container" \
--build-arg PREFIX="$prefix" . || exit $?
docker run --rm -v $dir:/tmp \
-e arch=$(echo ${prefix:-x86_64} | tr -d /) \
"$container" || exit $?
done
cd $prevdir