Hai Shalom c960c92f9c Shift stringslint to using python3.
Bug: 169704254
Test: manual
Change-Id: I175bdf75e7424bef6d4ac9f51797510766de2b14
(cherry picked from commit 85ccd0418097d774d8db8af77da2d6b5ed75d743)
Merged-In: I354ef4b12c75505a069fdf657ab98a9b122785c7
2021-01-22 22:07:30 +00:00

6 lines
227 B
Bash
Executable File

#!/bin/bash
LOCAL_DIR="$( dirname ${BASH_SOURCE} )"
git show --name-only --pretty=format: $1 | grep values/strings.xml | while read file; do
python3 $LOCAL_DIR/stringslint.py <(git show $1:$file) <(git show $1^:$file)
done