diff options
author | Avuton Olrich <avuton@gmail.com> | 2006-07-22 22:27:48 +0000 |
---|---|---|
committer | Avuton Olrich <avuton@gmail.com> | 2006-07-22 22:27:48 +0000 |
commit | 0532c9ab4c3686adfaa7eaf8e8ec2217a2cfb59d (patch) | |
tree | 5f05ac581a25e4b2a34f8b75825737e24a7c3a7d /scripts/makedist.sh | |
parent | c454122a021d705c5ddfa74913d53c18aa078ecb (diff) | |
download | mpd-0532c9ab4c3686adfaa7eaf8e8ec2217a2cfb59d.tar.gz mpd-0532c9ab4c3686adfaa7eaf8e8ec2217a2cfb59d.tar.xz mpd-0532c9ab4c3686adfaa7eaf8e8ec2217a2cfb59d.zip |
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
Diffstat (limited to '')
-rwxr-xr-x | scripts/makedist.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/makedist.sh b/scripts/makedist.sh index dca64d216..d342cea3a 100755 --- a/scripts/makedist.sh +++ b/scripts/makedist.sh @@ -5,6 +5,9 @@ PWD=`pwd` ## assume the base directory. if test "`basename $PWD`" == "scripts"; then cd ../ +else + MYOLDPWD=`pwd` + cd `dirname $0`/../ fi if test -e Makefile @@ -17,4 +20,6 @@ make dist if test "`basename $PWD`" == "scripts"; then cd contrib/ +else + cd $MYOLDPWD fi |