projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba39c4
)
Make minstall work with Solaris /bin/sh
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Fri, 6 Jun 2008 23:09:10 +0000
(16:09 -0700)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sat, 21 Jun 2008 16:19:45 +0000
(10:19 -0600)
Solaris /bin/sh doesn't set $PWD for you
Signed-off-by: Brian Paul <brian.paul@tungstengraphics.com>
bin/minstall
patch
|
blob
|
history
diff --git
a/bin/minstall
b/bin/minstall
index 819b2bc7e4acfa58a93755ca40414ce356c25aa5..8ee96089fa618d7d98866f5bb59420294501eb6b 100755
(executable)
--- a/
bin/minstall
+++ b/
bin/minstall
@@
-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"