# Creates shell script to execute rpm based on input file containing list of rpms
#
# command example
#  awk -fcreate_rpm_script_awk -vROOT=$BOOT_DIR  -vRPM_OPTIONS="--excludedocs" -vRPM_DIR="/mnt/cdrom/RedHat/RPMS/"   rpm.list > rpm.sh
#     and RPM_OPTIONS are optional
# Adds rpm command to the rpm package

BEGIN { printf("set -x\n\n") 
      }

{ printf ("rpm -i --force --nodeps %s --root %s  %s*\n", RPM_OPTIONS, ROOT, RPM_DIR $0) } 
