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

Sascha Silbe sascha-pgp at silbe.org
Sat Feb 12 01:49:21 EST 2011


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 at silbe.org>
---
 tools/patchwork-update-commits |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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
-- 
1.7.2.3



More information about the Patchwork mailing list