#! /bin/sh OPWD=$PWD ROOTDIR=/mnt/root RPMDIR=Vine-rpm # rm -fr $ROOTDIR # mkdir $ROOTDIR # mkdir $ROOTDIR/var # mkdir $ROOTDIR/var/lib # mkdir $ROOTDIR/var/lib/rpm # rpm --root $ROOTDIR --initdb cd $RPMDIR cat $OPWD/order | while read L do set $L PKG=$1 if [ $PKG = "S" ] then continue fi shift OPT="$*" echo rpm --root $ROOTDIR --ignorearch $OPT -i $PKG-[0-9]*-[0-9]*.*.rpm rpm --root $ROOTDIR --ignorearch $OPT -i $PKG-[0-9]*-[0-9]*.*.rpm || exit done