# HG changeset patch # User Ryan Pavlik # Date 1335399936 18000 # Node ID 35e225e1b841e54af34a29c2506ab2cb4e276e9d # Parent 0f4ffb24a0ec2f7c566bff8605532c129c40b3c3 patch-tool: use relative directories diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe --- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -7,10 +7,11 @@ pkg=$2 # MXE directory -mxedir=~/mxe +mxedir=$(cd $(dirname $0) && cd .. && pwd) # directory for unpacked tarballs/git repos -gitsdir=~/gits +gitsdir=${mxedir}/gits + # John Doe