Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[spellcheck] improved script
  • Loading branch information
3nids committed Jan 20, 2017
1 parent 4543835 commit e69263b
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 133 deletions.
6 changes: 2 additions & 4 deletions scripts/prepare-commit.sh
Expand Up @@ -41,16 +41,14 @@ set -e

# determine changed files
MODIFIED=$(git status --porcelain| sed -ne "s/^ *[MA] *//p" | sort -u)
if [ "$MODIFIED" != "" ]; then
${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED
fi


if [ -z "$MODIFIED" ]; then
echo nothing was modified
exit 0
fi

${TOPLEVEL}/scripts/spell_check/check_spelling.sh $MODIFIED

# save original changes
REV=$(git log -n1 --pretty=%H)
git diff >sha-$REV.diff
Expand Down
5 changes: 5 additions & 0 deletions scripts/spell_check/.agignore
Expand Up @@ -10,6 +10,7 @@ python/ext-libs/
python/plugins/processing/algs/otb/
python/plugins/processing/algs/saga/
python/qsci_apis/
src/astyle
src/app/dwg/libdxfrw/
src/app/gps/qwtpolar-1.0/
src/app/gps/qwtpolar-1.1.1/
Expand All @@ -34,6 +35,9 @@ debian/qgis-plugin-grass.lintian-overrides
debian/qgis-provider-grass.lintian-overrides
doc/contributors.json
Exception_to_GPL_for_Qt.txt
images/svg/symbol/blue-marker.svg
images/svg/symbol/red-marker.svg
images/themes/default/propertyicons/diagram.svg
images/themes/default/propertyicons/general.svg
images/themes/default/svgbase/hammer.svg
LexerR.py
Expand All @@ -50,6 +54,7 @@ resources/cpt-city-qgis-min/selections/div.xml
resources/cpt-city-qgis-min/selections/reds.xml
resources/cpt-city-qgis-min/wkp/schwarzwald/COPYING.xml
scripts/spell_check/spelling.dat
scripts/spell_check/test.sh
src/server/qgis_wms.xmi
tests/testdata/qgis_server_accesscontrol/Hello.qml
tests/testdata/qgis_server_accesscontrol/project.qgs
Expand Down

0 comments on commit e69263b

Please sign in to comment.