#!/bin/bash

#########################################################################
## CheckRPM-Dir (rpm-checkdir) -- Version 1.0 -- 4/25/97
#########################################################################

#########################################################################
## This was written by Kirk Bauer, 4/25/97
## 
## This script looks in a directory and tells you what packages are
## not installed, are different versions, or are the same versions.
##
## If you have *ANY* questions/comments/suggestions/complements/etc
## *please* send them to me.  One of the reasons I release scripts to
## people is to get positive feedback.  You can contact me through one
## of the following email addresses:
##    kirk@kaybee.org
##		kirk@gt.ed.net
##    gt5918a@prism.gatech.edu
##
## Revision History:
##     4/25/97 Version 1.0 -- Initial Release
##
#########################################################################

if [ $# = 0 ] ; then
   echo "This will run 'rpm-checkfile' on every file listed, and on"
   echo "every file in every directory listed on the command line."
   echo "Usage:"
   echo "   $0 <filename|dirname> <filename|dirname> ....."
   echo
else
   for i in $*
   do
      if [ -d $i ] ; then
         for j in $i/*.rpm
         do
            rpm-checkfile $j
         done
      else
         rpm-checkfile $i
      fi
   done
fi
