changeset 2486:a866a8b8beab

patch-tool: use relative directories
author Ryan Pavlik <rpavlik@iastate.edu>
date Wed, 25 Apr 2012 19:25:36 -0500
parents 119ae345cd33
children c7e932c8046d
files tools/patch-tool-mxe
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/patch-tool-mxe	Wed Apr 25 19:25:22 2012 -0500
+++ b/tools/patch-tool-mxe	Wed Apr 25 19:25:36 2012 -0500
@@ -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 <John Doe@acme.org>