summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Pavlik <rpavlik@iastate.edu>2012-04-26 00:25:36 (GMT)
committerRyan Pavlik <rpavlik@iastate.edu>2012-05-07 17:56:50 (GMT)
commit07c4050afc77598406aafc7c1e8e91bca00bf41c (patch)
tree020c5238038298386846b3947db75d3a0f77d230
parent16e9c2f2afddfbde9fe25f851923e669d1ef77a3 (diff)
downloadmxe-07c4050afc77598406aafc7c1e8e91bca00bf41c.zip
mxe-07c4050afc77598406aafc7c1e8e91bca00bf41c.tar.gz
mxe-07c4050afc77598406aafc7c1e8e91bca00bf41c.tar.bz2
patch-tool: use relative directories
-rwxr-xr-xtools/patch-tool-mxe5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe
index 30580bc..3937c9c 100755
--- a/tools/patch-tool-mxe
+++ b/tools/patch-tool-mxe
@@ -7,10 +7,11 @@ cmd=$1
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 <John Doe@acme.org>