summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-02-21 00:20:19 +0000
committerDave Airlie <airliedfreedesktop.org>2005-02-21 00:20:19 +0000
commita2990a9d730e1fe579debbe0e4a7be46c5c2329b (patch)
treeb7c6802fa21365bdae1bf281e3fafe66da5e7337 /bin
parentdee1c795c25c2915582c7928238498bb63d86234 (diff)
Add DESTDIR install target
Diffstat (limited to 'bin')
-rwxr-xr-xbin/installmesa7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/installmesa b/bin/installmesa
index 80fd8ef7e5a..fad07220827 100755
--- a/bin/installmesa
+++ b/bin/installmesa
@@ -12,7 +12,7 @@ TOP=.
INCLUDE_DIR="/usr/local/include"
LIB_DIR="/usr/local/lib"
-
+if [ x$# == "x0" ] ; then
echo
echo "***** Mesa installation - You may need root privileges to do this *****"
echo
@@ -33,7 +33,6 @@ if [ x${INPUT} != "x" ] ; then
LIB_DIR=${INPUT}
fi
-
echo
echo "About to install Mesa header files (GL/*.h) in: " ${INCLUDE_DIR}/GL
echo "and Mesa library files (libGL.*, etc) in: " ${LIB_DIR}
@@ -41,6 +40,10 @@ echo "Press <Enter> to continue, or <ctrl>-C to abort."
read INPUT
+else
+INCLUDE_DIR=$1/include
+LIB_DIR=$1/lib
+fi
# flags:
# -f = force