mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
Make minstall work with Solaris /bin/sh
Solaris /bin/sh doesn't set $PWD for you Signed-off-by: Brian Paul <brian.paul@tungstengraphics.com>
This commit is contained in:
parent
4ba39c40ae
commit
1043a7c71a
1 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,8 @@ if [ $# -ge 2 ] ; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
PWDSAVE=`pwd`
|
||||
|
||||
# determine file's type
|
||||
if [ -h "$FILE" ] ; then
|
||||
#echo $FILE is a symlink
|
||||
|
|
@ -57,7 +59,6 @@ if [ $# -ge 2 ] ; then
|
|||
|
||||
FILE=`basename "$FILE"`
|
||||
# Go to $DEST and make the link
|
||||
PWDSAVE="$PWD"
|
||||
cd "$DEST" # pushd
|
||||
$RM "$FILE"
|
||||
$SYMLINK "$TARGET" "$FILE"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue