#!/bin/bash

# Bug 699993 - volumebutton.h not in header gtkmm.h (gtkmm3)
# Bug 700069 - gktmm.h does not include gtkmm/accelmap.h (gtkmm2)

# For each file, $1mm/*.h, check if it's included in $1mm.h.
# $1 can be e.g. gdk or gtk.


for headerfile in $1mm/*.h
do
  echo "=== $headerfile"
  grep -q  "^ *# *include  *<$headerfile>" $1mm.h
  if [ $? != 0 ]
  then
    echo "  Missing"
    grep -F "<$headerfile>" $1mm/*.h
  fi
done

