2003-11-14 17:48:57 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-02-26 10:23:53 +01:00
|
|
|
# $XFree86$
|
2003-11-14 17:48:57 +01:00
|
|
|
#
|
|
|
|
# This script recreates a header that undoes the effect of mfbmap.h
|
|
|
|
# This should only be rerun if there have been changes in the mfb code
|
|
|
|
# that affect the external symbols.
|
|
|
|
# It assumes that Xserver/mfb has been compiled.
|
|
|
|
# The output goes to stdout.
|
|
|
|
echo ""
|
|
|
|
echo "#ifdef _MFBMAP_H"
|
|
|
|
echo "#undef _MFBMAP_H"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
nm ../../../mfb/*.o | \
|
|
|
|
awk "{ if ((\$2 == \"D\") || (\$2 == \"T\") || (\$2 == \"C\")) print \$3 }" | \
|
|
|
|
sed s/^_// | \
|
|
|
|
grep -v "ModuleInit$" | \
|
|
|
|
sort | \
|
|
|
|
awk "{ print \"#undef \" \$1 }"
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "#endif"
|