mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-05 10:19:37 +00:00
added defcheck.py.
2006-11-08 Sven Neumann <sven@gimp.org> * tools/Makefile.am (EXTRA_DIST): added defcheck.py. * tools/defcheck.py: keep a list of .def files, glob didn't work for me. Also bail out with a reasonable message if not being called from the toplevel source directory. * Makefile.am (dist-hook): check .def files for consistency.
This commit is contained in:
parent
fda5a84514
commit
f7513e5a80
4 changed files with 36 additions and 7 deletions
|
@ -27,14 +27,31 @@ Needs the tool "nm" to work.
|
|||
|
||||
"""
|
||||
|
||||
import sys, commands, glob
|
||||
import sys, commands
|
||||
|
||||
for df in glob.glob ("lib*/*.def"):
|
||||
def_files = (
|
||||
"libgimpbase/gimpbase.def",
|
||||
"libgimpcolor/gimpcolor.def",
|
||||
"libgimpconfig/gimpconfig.def",
|
||||
"libgimp/gimp.def",
|
||||
"libgimp/gimpui.def",
|
||||
"libgimpmath/gimpmath.def",
|
||||
"libgimpmodule/gimpmodule.def",
|
||||
"libgimpthumb/gimpthumb.def",
|
||||
"libgimpwidgets/gimpwidgets.def"
|
||||
)
|
||||
|
||||
for df in def_files:
|
||||
directory, rest = df.split ("/")
|
||||
basename, extension = rest.split (".")
|
||||
libname = directory + "/.libs/lib" + basename + "-*.so"
|
||||
|
||||
defsymbols = file (df).read ().split ()[1:]
|
||||
try:
|
||||
defsymbols = file (df).read ().split ()[1:]
|
||||
except IOError, message:
|
||||
print message
|
||||
print "You need to run this script from the toplevel source directory."
|
||||
sys.exit (-1)
|
||||
|
||||
doublesymbols = []
|
||||
for i in range (len (defsymbols)-1, 0, -1):
|
||||
|
@ -90,5 +107,3 @@ for df in glob.glob ("lib*/*.def"):
|
|||
sys.exit (1)
|
||||
|
||||
sys.exit (0)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue