fmt-my-stuff 317 B

123456789101112
  1. #!/bin/sh
  2. if [ "$#" -eq "0" ]
  3. then
  4. echo "Usage: $0 YOUR-MNT"
  5. exit
  6. fi
  7. BASE="$(readlink -f "$0" 2>/dev/null || python -c 'import os,sys;print(os.path.realpath(sys.argv[1]))' "$0")"
  8. BASE="$(dirname "$BASE")"
  9. grep -lr $1 $BASE/data/ | while read line; do utils/schema-check/dn42-schema.py fmt -i $line; done