summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2011-02-11 04:49:21 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-02-28 09:54:15 +0800
commitc6d26672a7ecb8973b361770668661eec2fa24a2 (patch)
tree26438da8e0a89b6b52b71a2f7813e31c2e425e08
parent1dbb7b85cb00bbdfecfce8831096d9a15111ac37 (diff)
downloadpatchwork-c6d26672a7ecb8973b361770668661eec2fa24a2.tar.bz2
patchwork-c6d26672a7ecb8973b361770668661eec2fa24a2.tar.xz
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 <sascha-pgp@silbe.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rwxr-xr-xtools/patchwork-update-commits3
1 files changed, 2 insertions, 1 deletions
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