diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 1a95a727a2..2bf931ded5 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -4870,11 +4870,11 @@ def MakeInstallerOSX(): # Execute install_name_tool to make them reference an absolute path if (libname.endswith(".dylib") and not os.path.islink(libname)): oscmd("install_name_tool -id /Developer/Panda3D/lib/%s %s" % (base, libname), True) - oscmd("otool -L %s | grep .%s.dylib > %s/tmp/otool-libs.txt" % (libname, VERSION, GetOutputDir()), True) + oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (libname, VERSION, GetOutputDir()), True) for line in open(GetOutputDir()+"/tmp/otool-libs.txt", "r"): if len(line.strip()) > 0 and not line.strip().endswith(":"): libdep = line.strip().split(" ", 1)[0] - if not libdep.startswith("/Developer/Panda3D/lib/"): + if "/" not in libdep: oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, libdep, libname), True) # Scripts to configure this version of Panda3D (in environment.plist) @@ -4916,11 +4916,11 @@ def MakeInstallerOSX(): # Execute install_name_tool to make the binaries reference an absolute path if (not os.path.islink(binname)): - oscmd("otool -L %s | grep .%s.dylib > %s/tmp/otool-libs.txt" % (binname, VERSION, GetOutputDir()), True) + oscmd("otool -L %s | grep .dylib > %s/tmp/otool-libs.txt" % (binname, VERSION, GetOutputDir()), True) for line in open(GetOutputDir()+"/tmp/otool-libs.txt", "r"): if len(line.strip()) > 0 and not line.strip().endswith(":"): libdep = line.strip().split(" ", 1)[0] - if not libdep.startswith("/Developer/Panda3D/lib/"): + if "/" not in libdep: oscmd("install_name_tool -change %s /Developer/Panda3D/lib/%s %s" % (libdep, libdep, binname), True) if PkgSkip("PYTHON")==0: @@ -5020,7 +5020,7 @@ function have16installed() { print >>dist, ' ' print >>dist, ' ' print >>dist, ' ' - print >>dist, ' ' % VERSION + print >>dist, ' ' % VERSION print >>dist, ' ' print >>dist, ' ' print >>dist, ' '