Home | History | Annotate | Download | only in scripts
      1 #!/bin/sh
      2 
      3 # do some mapping for the naimng convention of the two lists
      4 # gtk2 -> gtk+
      5 # glib2 -> glib
      6 # GConf -> gconf
      7 # control-center -> gnome-control-center
      8 # 
      9 base_initial=""
     10 
     11 case "$1" in
     12 	*gtk2*) base_initial="gtk+"
     13 		;;
     14 	"glib2") base_initial="glib"
     15 		;;
     16 	"GConf") base_initial="gconf"
     17 		;;
     18 	"control-center") base_initial="gnome-control-center"
     19 		;;
     20 	*) base_initial=$1
     21 		;;
     22 esac
     23 
     24 echo "base_initial is $base_initial"
     25 
     26 # Need to merge all the rpms into one
     27 # Strip out all the locale stuff
     28 
     29 ls /usr/src/packages/RPMS/*/$1* > /tmp/rpms.$$
     30 cat /tmp/rpms.$$ | while read rpm
     31 do
     32 	rpm -qpl $rpm | grep -v locale >> /tmp/$1.myfiles
     33 done
     34 
     35 # sort the content to make comparison more meaningful
     36 
     37 sort -u /tmp/$1.myfiles > /tmp/$1.myfiles.sorted
     38 
     39 
     40 # Take the reference files list and substitute prefix and sysconfdir
     41 
     42 cat /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
     43 
     44 sort -u /tmp/$1.ref-files-2.2 > /tmp/$base_initial.ref-files-2.2.sorted
     45 diff -u /tmp/$1.myfiles.sorted /tmp/$base_initial.ref-files-2.2.sorted
     46 
     47 # clean up
     48 rm /tmp/rpms.$$ /tmp/$1.myfiles /tmp/$1.ref-files-2.2
     49