From c6d26672a7ecb8973b361770668661eec2fa24a2 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Fri, 11 Feb 2011 04:49:21 +0000 Subject: 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 --- tools/patchwork-update-commits | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits index 245a66a..2730216 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 -- cgit v1.2.3