#!/bin/sh # $Progeny$ PROGNAME=${0##*/} CHROOTDIR="./rpm-chroot" # Define DEBUG to "yes" if you want debugging output. DEBUG= trace () { if [ -n "$DEBUG" ]; then echo "$PROGNAME: debug: $*" >&2 fi } warn () { echo "$PROGNAME: warning: $*" >&2 } die () { echo "$PROGNAME: error: $*" >&2 exit 1 } RPMS=$(cat </dev/null 2>&1; then CHROOTDIR="$(pwd)/$CHROOTDIR" fi trace "Installing $* to $CHROOTDIR..." if ! rpm --install --root "$CHROOTDIR" $@; then die "command \"rpm --install --root $CHROOTDIR $*\"" \ "failed" fi fi PASSNUM=$(( $PASSNUM + 1 )) done # vim:set ai et nohlsearch sts=4 sw=4 tw=80: