File: stringslint_sha.sh

package info (click to toggle)
android-platform-frameworks-base 1%3A10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 321,788 kB
  • sloc: java: 962,234; cpp: 274,314; xml: 242,770; python: 5,060; sh: 1,432; ansic: 494; makefile: 47; sed: 19
file content (5 lines) | stat: -rwxr-xr-x 226 bytes parent folder | download | duplicates (2)
1
2
3
4
5
#!/bin/bash
LOCAL_DIR="$( dirname ${BASH_SOURCE} )"
git show --name-only --pretty=format: $1 | grep values/strings.xml | while read file; do
    python $LOCAL_DIR/stringslint.py <(git show $1:$file) <(git show $1^:$file)
done