]> git.ozlabs.org Git - patchwork/commitdiff
patchwork-update-commits: autodetect patchwork install directory
authorSascha Silbe <sascha-pgp@silbe.org>
Fri, 11 Feb 2011 04:49:21 +0000 (04:49 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 28 Feb 2011 01:54:15 +0000 (09:54 +0800)
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>
tools/patchwork-update-commits

index 245a66a06844df0dc763879e1bc876de8a1179f4..27302167c41dbd770df5002905f49e70683f62dd 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-pwpath=apps/patchwork
+toolsdir="$(dirname "$0")"
+pwpath="${toolsdir}"/../apps/patchwork
 
 if [ "$#" -lt 1 ]
 then