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

login
register
mail settings
Submitter Sascha Silbe
Date Feb. 11, 2011, 2:49 p.m.
Message ID <1297435761-5794-3-git-send-email-sascha-pgp@silbe.org>
Download mbox | patch
Permalink /patch/82889/
State Accepted
Commit 9918885899c9ae49864d693947c81e42d15481d3
Headers show

Comments

Sascha Silbe - Feb. 11, 2011, 2:49 p.m.
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(-)
Jeremy Kerr - Feb. 28, 2011, 1:37 a.m.
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

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