#!/bin/bash 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 ARCHITECTURE=$ARCHITECTURE sudo --preserve-env=ARCHITECTURE ./mkimage-arch.sh done