|
[Rivet-svn] r2009 - bootstrapblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Nov 4 20:44:06 GMT 2009
Author: buckley Date: Wed Nov 4 20:44:06 2009 New Revision: 2009 Log: Bit of a Boost install fix... before I overhaul it completely Modified: bootstrap/rivet-bootstrap Modified: bootstrap/rivet-bootstrap ============================================================================== --- bootstrap/rivet-bootstrap Wed Nov 4 20:21:53 2009 (r2008) +++ bootstrap/rivet-bootstrap Wed Nov 4 20:44:06 2009 (r2009) @@ -412,12 +412,16 @@ incdir = os.path.join(PREFIX, "include") boostincdir = os.path.join(incdir, "boost") boostincdirs = [d for d in os.listdir(incdir) if d.startswith("boost-")] - if len(boostincdirs) > 0: + boostincdirs.sort() + if boostincdirs: boostincdir_outer = boostincdirs[-1] boostincdir_inner = os.path.join(boostincdir_outer, "boost") if not os.path.exists(boostincdir_inner): logging.error("Can't find Boost include dir %s to symlink" % boostincdir_inner) sys.exit(2) + if os.path.islink(boostincdir): + logging.info("Removing existing symlink at %s" % boostincdir) + os.unlink(boostincdir) logging.info("Symlinking Boost include dir: %s -> boost" % boostincdir_inner) os.symlink(boostincdir_inner, boostincdir) else:
More information about the Rivet-svn mailing list |