ezpp-oppai-ap/package
2021-06-25 20:26:13 +02:00

17 lines
384 B
Bash
Executable File

#!/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