a005794323
- Output deb files to debs/ folder by default. - Use $HOME/.termux-build for build folder by default (changed from previous $HOME/termux). - Make scripts/run-docker.sh re-use a single container instead of creating new ones for each run. - Avoid mounting the whole Termux build folder in docker. This fixes #294, mmap not supported host folders under OS X. - Add a scripts/update-docker.sh utility for checking for an updated docker image.. - Make build-package.sh support the [-a ARCH] flag to specify arch. - Make aarch64 the default arch (from previous arm). - Try to improve the README a bit.
20 lines
492 B
Bash
Executable File
20 lines
492 B
Bash
Executable File
#!/bin/sh
|
|
set -e -u
|
|
|
|
CONTAINER=termux-package-builder
|
|
IMAGE=termux/package-builder
|
|
|
|
docker pull $IMAGE
|
|
|
|
LATEST=`docker inspect --format "{{.Id}}" $IMAGE`
|
|
RUNNING=`docker inspect --format "{{.Image}}" $CONTAINER`
|
|
|
|
if [ $LATEST = $RUNNING ]; then
|
|
echo "Image '$IMAGE' used in the container '$CONTAINER' is already up to date"
|
|
else
|
|
echo "Image '$IMAGE' used in the container '$CONTAINER' has been updated - removing the outdated container"
|
|
docker stop $CONTAINER
|
|
docker rm -f $CONTAINER
|
|
fi
|
|
|