2018-02-05 13:38:02 +01:00
|
|
|
#!/usr/bin/env bash
|
2012-10-04 19:33:47 +02:00
|
|
|
###########################################################################
|
|
|
|
# chkspelling.sh
|
|
|
|
# ---------------------
|
|
|
|
# Date : December 2009
|
|
|
|
# Copyright : (C) 2009 by Juergen E. Fischer
|
|
|
|
# Email : jef at norbit dot de
|
|
|
|
###########################################################################
|
|
|
|
# #
|
|
|
|
# This program is free software; you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2009-12-20 12:29:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
RE=$(echo $(cut -d: -f1 scripts/spelling.dat | sed -e 's/^/\\</; s/$/\\>|/;') | sed -e 's/| /|/g; s/|$//;')
|
2023-07-02 22:17:09 +02:00
|
|
|
EX="\.(svn-base|tmp|xpm|ts|o)|spelling\.dat|Exception_to_GPL_for_Qt.txt|sqlite3.c|qgisstyle|LexerR.py|debian/build.*|debian/.*/usr/|ms-windows/osgeo4w|ChangeLog|src/app/gps/qwtpolar-|python/ext-libs|i18n/"
|
2009-12-20 12:29:07 +00:00
|
|
|
|
2018-06-21 12:37:17 +10:00
|
|
|
grep --exclude=*.{png,svg,db,bz2,pdf,qgs,qml,api,pyc} --exclude-dir=.git --exclude-dir=debian/build* --color=always -E "$RE" -ir . | grep -iv -E "$EX"
|