diff mbox

[2/2] patchwork-update-commits: autodetect patchwork install directory

Message ID 1297435761-5794-3-git-send-email-sascha-pgp@silbe.org
State Accepted
Commit 9918885899c9ae49864d693947c81e42d15481d3
Headers show

Commit Message

Sascha Silbe Feb. 11, 2011, 2:49 p.m. UTC
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>
---
 tools/patchwork-update-commits |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Jeremy Kerr Feb. 28, 2011, 1:37 a.m. UTC | #1
Hi Sascha,

> Make patchwork-update-commits work from outside the Patchwork git
> repository so it can be used for other projects.

Looks good, thanks.


Jeremy
diff mbox

Patch

diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index ce4f301..a31cc2e 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 2 ]
 then