summaryrefslogtreecommitdiff
path: root/tools/patchwork-update-commits
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2016-12-02 10:42:44 +0000
committerStephen Finucane <stephen@that.guru>2017-02-06 18:58:03 +0000
commite56391f66cb8624695e4adbec7bf1467655c0fe9 (patch)
treeffbb2bd1903b46ff0ede1a8d267971bbaf13f729 /tools/patchwork-update-commits
parent2d142b2c0a2710a0641966c86edbc9546498b7e2 (diff)
downloadpatchwork-e56391f66cb8624695e4adbec7bf1467655c0fe9.tar
patchwork-e56391f66cb8624695e4adbec7bf1467655c0fe9.tar.gz
trivial: Standardize variable naming in scripts
Just so we can interact with them as expected. Signed-off-by: Stephen Finucane <stephen@that.guru> Reviewed-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'tools/patchwork-update-commits')
-rwxr-xr-xtools/patchwork-update-commits8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index 257819e..c84a630 100755
--- a/tools/patchwork-update-commits
+++ b/tools/patchwork-update-commits
@@ -19,8 +19,8 @@
# along with Patchwork; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-toolsdir="$(dirname "$0")"
-pwpath="${toolsdir}/../patchwork"
+TOOLS_DIR="$(dirname "$0")"
+PW_DIR="${TOOLS_DIR}/../patchwork"
if [ "$#" -lt 1 ]; then
echo "usage: $0 <revspec>" >&2
@@ -29,6 +29,6 @@ fi
git rev-list --reverse "$@" |
while read -r commit; do
- hash=$(git diff "$commit~..$commit" | python "$pwpath/hasher.py")
- "$pwpath/bin/pwclient" update -s Accepted -c "$commit" -h "$hash"
+ hash=$(git diff "$commit~..$commit" | python "$PW_DIR/hasher.py")
+ "$PW_DIR/bin/pwclient" update -s Accepted -c "$commit" -h "$hash"
done