From f4bb1a7e31ee810ab3005252d60b9a3bd405d82d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 9 Jul 2024 15:14:19 +0200 Subject: build-all-images.sh: allow to pull --- build-all-images.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build-all-images.sh') diff --git a/build-all-images.sh b/build-all-images.sh index 2715740..a7e763b 100755 --- a/build-all-images.sh +++ b/build-all-images.sh @@ -2,6 +2,18 @@ cd "$(dirname "$(readlink -e "$0")")" +if [ "x$1" = 'x--pull' ]; then + git pull --rebase + shift +fi + +if [ $# -ne 0 ]; then + >&2 printf 'usage: %s [--pull]\n\n' "$0" + >&2 echo 'unknown parameters:' + >&2 printf ' "%s"\n' "$@" + exit 1 +fi + for ARCHITECTURE in i486 i686 pentium4; do ARCHITECTRUE=$ARCHITECTURE sudo --preserve-env=ARCHITECTURE ./mkimage-arch.sh done -- cgit v1.2.3-70-g09d2