X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ac669e8b922c7ace230294f9bf9a3a2bdfbd19d2..0f78b81511be65d8fe21af1e6ac674f9e80ac29d:/prepare-source diff --git a/prepare-source b/prepare-source index cceecc0f..508c8df8 100755 --- a/prepare-source +++ b/prepare-source @@ -6,8 +6,7 @@ # NOTE: if you use a diff from the "patches" directory in a release # tar, this is not needed (but doesn't hurt anything). dir=`dirname $0` -if test x"$dir" = x -o x"$dir" = x.; then - make -f prepare-source.mak -else - make -C "$dir" -f prepare-source.mak +if test x"$dir" != x -o x"$dir" != x.; then + cd "$dir" fi +make -f prepare-source.mak