From: Sascha Silbe Date: Fri, 11 Feb 2011 04:49:21 +0000 (+0000) Subject: patchwork-update-commits: autodetect patchwork install directory X-Git-Tag: v0.9.0~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6d26672a7ecb8973b361770668661eec2fa24a2;p=thirdparty%2Fpatchwork.git patchwork-update-commits: autodetect patchwork install directory Make patchwork-update-commits work from outside the Patchwork git repository so it can be used for other projects. Signed-off-by: Sascha Silbe Signed-off-by: Jeremy Kerr --- diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits index 245a66a0..27302167 100755 --- a/tools/patchwork-update-commits +++ b/tools/patchwork-update-commits @@ -1,6 +1,7 @@ #!/bin/bash -pwpath=apps/patchwork +toolsdir="$(dirname "$0")" +pwpath="${toolsdir}"/../apps/patchwork if [ "$#" -lt 1 ] then