if fix.Location in exceptions or fix.Link in exceptions:
del fixes[k]
else:
stripFW = fix.Location in strippedFrameworks
executables.extend(fix.moveLibrary(bundle, stripFW, log))
aspellsrcpath = "/opt/local/share/aspell"
if os.path.exists(aspellsrcpath):
aspelldestpath = os.path.join(bundle, "Contents/share/aspell")
if not os.path.exists(aspelldestpath):
log.append(">> mkdir " + aspelldestpath)
os.makedirs(aspelldestpath, 0755)
if os.path.exists(aspelldestpath):
log.append(">> copying aspell dictionaries")
print "copying aspell dictionaries"
copy_tree(aspellsrcpath, aspelldestpath)
for exe in executables:
exe.applyFixes(fixes, log)
logfile = file(os.path.join(bundle, "Contents/osxtools.log"), "a")
logfile.write("ingest at " + datetime.now().isoformat(" ") + "\n")
for e in log:
logfile.write(e + "\n")
logfile.close()
def createSymlinks(bundle, links):
currDir = os.getcwd()
for lnk,tar in links:
print "chdir to " + os.path.join(bundle, os.path.dirname(lnk))
os.chdir(os.path.join(bundle, os.path.dirname(lnk)))
print "symlink " + os.path.basename(lnk) + " -> " + tar
os.symlink(tar, os.path.basename(lnk))
os.chdir(currDir)
def relinkOld(FILE, LIBDIR, INSTALLDIR):
pass