Do a better job of trying to be able to run these
scripts from 'anywhere' git-svn-id: https://svn.musicpd.org/mpd/trunk@4430 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
c454122a02
commit
0532c9ab4c
@ -5,6 +5,9 @@ PWD=`pwd`
|
|||||||
## assume the base directory.
|
## assume the base directory.
|
||||||
if test "`basename $PWD`" == "scripts"; then
|
if test "`basename $PWD`" == "scripts"; then
|
||||||
cd ../
|
cd ../
|
||||||
|
else
|
||||||
|
MYOLDPWD=`pwd`
|
||||||
|
cd `dirname $0`/../
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -e Makefile
|
if test -e Makefile
|
||||||
@ -17,4 +20,6 @@ make dist
|
|||||||
|
|
||||||
if test "`basename $PWD`" == "scripts"; then
|
if test "`basename $PWD`" == "scripts"; then
|
||||||
cd contrib/
|
cd contrib/
|
||||||
|
else
|
||||||
|
cd $MYOLDPWD
|
||||||
fi
|
fi
|
||||||
|
@ -4,9 +4,9 @@ PWD=`pwd`
|
|||||||
|
|
||||||
## If we're not in the scripts directory
|
## If we're not in the scripts directory
|
||||||
## assume the base directory.
|
## assume the base directory.
|
||||||
if test "`basename $PWD`" != "scripts" && \
|
if test "`basename $PWD`" != "scripts"; then
|
||||||
test -d scripts; then
|
MYOLDPWD=`pwd`
|
||||||
cd scripts
|
cd `dirname $0`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./makedist.sh
|
./makedist.sh
|
||||||
@ -25,5 +25,5 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "`basename $PWD`" != "scripts"; then
|
if test "`basename $PWD`" != "scripts"; then
|
||||||
cd ..
|
cd $MYOLDPWD
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user