summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@google.com>2018-03-28 14:59:57 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-03-28 14:59:57 +0000
commit3fbbd0f95dc5f3ebefe9f81b37657fe8f2128c20 (patch)
tree38fc4187fa00956b7eab94a4fcf3ba1fb66ae9fe
parentf71a29c976345d907fe6a07e9347dce38444b239 (diff)
parent7f0d63d1580ee36970a3b3060b0016195e0674c7 (diff)
Merge "Detect paths without lunch." into pi-dev
am: 7f0d63d158 Change-Id: Ia2e13d6e8929594f71debd70cc8998ab4e752cdc
-rwxr-xr-xtools/stringslint/stringslint_sha.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/stringslint/stringslint_sha.sh b/tools/stringslint/stringslint_sha.sh
index c79ba04d5e10..bd80bb4e6f3f 100755
--- a/tools/stringslint/stringslint_sha.sh
+++ b/tools/stringslint/stringslint_sha.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+LOCAL_DIR="$( dirname ${BASH_SOURCE} )"
git show --name-only --pretty=format: $1 | grep values/strings.xml | while read file; do
- python $ANDROID_BUILD_TOP/frameworks/base/tools/stringslint/stringslint.py <(git show $1:$file) <(git show $1^:$file)
+ python $LOCAL_DIR/stringslint.py <(git show $1:$file) <(git show $1^:$file)
done