149N/A#!/bin/sh
149N/A
149N/A# do some mapping for the naimng convention of the two lists
149N/A# gtk2 -> gtk+
149N/A# glib2 -> glib
149N/A# GConf -> gconf
149N/A# control-center -> gnome-control-center
149N/A#
149N/Abase_initial=""
149N/A
149N/Acase "$1" in
149N/A *gtk2*) base_initial="gtk+"
149N/A ;;
149N/A "glib2") base_initial="glib"
149N/A ;;
149N/A "GConf") base_initial="gconf"
149N/A ;;
149N/A "control-center") base_initial="gnome-control-center"
149N/A ;;
149N/A *) base_initial=$1
149N/A ;;
149N/Aesac
149N/A
149N/Aecho "base_initial is $base_initial"
149N/A
149N/A# Need to merge all the rpms into one
149N/A# Strip out all the locale stuff
149N/A
149N/Als /usr/src/packages/RPMS/*/$1* > /tmp/rpms.$$
149N/Acat /tmp/rpms.$$ | while read rpm
149N/Ado
149N/A rpm -qpl $rpm | grep -v locale >> /tmp/$1.myfiles
149N/Adone
149N/A
149N/A# sort the content to make comparison more meaningful
149N/A
149N/Asort -u /tmp/$1.myfiles > /tmp/$1.myfiles.sorted
149N/A
149N/A
149N/A# Take the reference files list and substitute prefix and sysconfdir
149N/A
149N/Acat /sgnome/pkgs/gnome-2.2/misc/files-2.2/$base_initial.lst | sed 's/opt\/gnome-2.2/usr/' | sed 's/usr\/etc/etc/' >> /tmp/$base_initial.ref-files-2.2
149N/A
149N/Asort -u /tmp/$1.ref-files-2.2 > /tmp/$base_initial.ref-files-2.2.sorted
149N/Adiff -u /tmp/$1.myfiles.sorted /tmp/$base_initial.ref-files-2.2.sorted
149N/A
149N/A# clean up
149N/Arm /tmp/rpms.$$ /tmp/$1.myfiles /tmp/$1.ref-files-2.2