diff options
Diffstat (limited to 'hw/xfree86/xf1bpp/mfbunmap.sh')
-rw-r--r-- | hw/xfree86/xf1bpp/mfbunmap.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hw/xfree86/xf1bpp/mfbunmap.sh b/hw/xfree86/xf1bpp/mfbunmap.sh new file mode 100644 index 000000000..6b244e68e --- /dev/null +++ b/hw/xfree86/xf1bpp/mfbunmap.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# $XFree86: xc/programs/Xserver/hw/xfree86/xf1bpp/mfbunmap.sh,v 1.2 1998/07/25 16:59:25 dawes Exp $ +# +# 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" |