Mesa (master): mklib: Ensure target directory exists for library

Dan Nicholson dbn at kemper.freedesktop.org
Tue Aug 4 13:26:15 UTC 2009


Module: Mesa
Branch: master
Commit: 23671e5358ffc0abfec83aeea9a515b09a6b35f3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23671e5358ffc0abfec83aeea9a515b09a6b35f3

Author: Dan Nicholson <dbn.lists at gmail.com>
Date:   Mon Aug  3 08:35:43 2009 -0700

mklib: Ensure target directory exists for library

Instead of relying on the Makefile to always generate $(TOP)/$(LIB_DIR),
just have mklib handle creating the directory. This should fix any races
when using parallel make.

Signed-off-by: Dan Nicholson <dbn.lists at gmail.com>

---

 bin/mklib |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/bin/mklib b/bin/mklib
index 2444945..db97087 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -971,5 +971,6 @@ esac
 #
 if [ ${INSTALLDIR} != "." ] ; then
     echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
+    test -d ${INSTALLDIR} || mkdir -p ${INSTALLDIR}
     mv ${FINAL_LIBS} ${INSTALLDIR}/
 fi




More information about the mesa-commit mailing list