summaryrefslogtreecommitdiff
path: root/gtk/aliasfilescheck.sh
blob: 31b49d45103a1efdf7c24e2ad5bf95583dc49da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#! /bin/sh

if test "x$gtk_all_c_sources" = x; then
	echo gtk_all_c_sources variable not defined
	exit 1
fi

grep 'IN_FILE' ${srcdir-.}/gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files
{ cd ${srcdir-.}; grep '^ *# *define __' $gtk_all_c_sources; } | sed 's/.*define //;s/ *$//' | sort > actual-files

diff expected-files actual-files && rm -f expected-files actual-files