Index: Mesa-6.3.2/bin/installmesa =================================================================== --- Mesa-6.3.2.orig/bin/installmesa +++ Mesa-6.3.2/bin/installmesa @@ -12,7 +12,7 @@ TOP=. INCLUDE_DIR="/usr/local/include" LIB_DIR="/usr/local/lib" -if [ x$# == "x0" ] ; then +if [ "x$#" == "x0" ] ; then echo echo "***** Mesa installation - You may need root privileges to do this *****" echo @@ -20,7 +20,7 @@ echo "Default directory for header files echo "Enter new directory or press to accept this default." read INPUT -if [ x${INPUT} != "x" ] ; then +if [ "x${INPUT}" != "x" ] ; then INCLUDE_DIR=${INPUT} fi @@ -29,7 +29,7 @@ echo "Default directory for library file echo "Enter new directory or press to accept this default." read INPUT -if [ x${INPUT} != "x" ] ; then +if [ "x${INPUT}" != "x" ] ; then LIB_DIR=${INPUT} fi @@ -47,7 +47,7 @@ fi # flags: # -f = force -# -d = preserve symlinks +# -d = preserve symlinks (does not work on BSD) set -v @@ -57,6 +57,6 @@ mkdir ${INCLUDE_DIR}/GLES mkdir ${LIB_DIR} cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES -cp -fd ${TOP}/lib*/lib* ${LIB_DIR} +cp -f ${TOP}/lib*/lib* ${LIB_DIR} echo "Done."