Skip to content
Snippets Groups Projects
Commit 8165d13f authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Spelling script now doesn't take git_version into account

parent d2b7442d
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,8 @@ cat spelling/pkeys | sed -e $'s/_/\\\n/g' | grep -v '[0-9]' | sed -e $'s/-/\\\n/ ...@@ -19,6 +19,8 @@ cat spelling/pkeys | sed -e $'s/_/\\\n/g' | grep -v '[0-9]' | sed -e $'s/-/\\\n/
nsafewords=`cat spelling/keywords spelling/allkeys spelling_words.dict | wc -l | awk '{print $1}'` nsafewords=`cat spelling/keywords spelling/allkeys spelling_words.dict | wc -l | awk '{print $1}'`
echo personal_ws-1.1 en $nsafewords > ./spelling/allwords.dict echo personal_ws-1.1 en $nsafewords > ./spelling/allwords.dict
cat spelling/keywords spelling/allkeys spelling_words.dict >> spelling/allwords.dict cat spelling/keywords spelling/allkeys spelling_words.dict >> spelling/allwords.dict
# Get the git version
git_version="$(../src/lib/plumed --no-mpi info --git-version)"
# This is everything we have done thus far # This is everything we have done thus far
for file in *PP.md automatic/*.txt ../CHANGES/*.md tutorials/*.txt tutorials/*.site tutorials/others/*.txt ; do for file in *PP.md automatic/*.txt ../CHANGES/*.md tutorials/*.txt tutorials/*.site tutorials/others/*.txt ; do
...@@ -27,7 +29,7 @@ for file in *PP.md automatic/*.txt ../CHANGES/*.md tutorials/*.txt tutorials/*.s ...@@ -27,7 +29,7 @@ for file in *PP.md automatic/*.txt ../CHANGES/*.md tutorials/*.txt tutorials/*.s
nf=`echo $splits | awk '{print NF}'` nf=`echo $splits | awk '{print NF}'`
fname=`echo $splits | awk -v n=$nf '{print $n}'` fname=`echo $splits | awk -v n=$nf '{print $n}'`
# This is some stuff to get rid of stuff that trips up the spell checker: the equations and the plumed examples # This is some stuff to get rid of stuff that trips up the spell checker: the equations and the plumed examples
cat $file | grep -v "\\image" | grep -v "anchor" | sed -e 's/psi-1//' | sed -e 's/-#//' | sed -e 's/@//' | sed -e 's/&//' | sed -e 's/\vdots//' | cat $file | grep -v "\\image" | grep -v $git_version | grep -v "anchor" | sed -e 's/psi-1//' | sed -e 's/-#//' | sed -e 's/@//' | sed -e 's/&//' | sed -e 's/\vdots//' |
awk 'BEGIN{inp=0}{ awk 'BEGIN{inp=0}{
if($1=="\\endplumedfile" || $1=="\\f]" || $1=="\\f}" || $1=="\\endauxfile" || $1=="\\endverbatim" || $1=="\\endcode"){inp=0;} if($1=="\\endplumedfile" || $1=="\\f]" || $1=="\\f}" || $1=="\\endauxfile" || $1=="\\endverbatim" || $1=="\\endcode"){inp=0;}
else if($1=="\\plumedfile" || $1=="\\f[" || $1=="\\f{eqnarray*}{" || $1=="\\f{align}{" || match($1,"auxfile") || $1=="\\verbatim" || index($1,"\\code{")!=0 ){inp=1;} else if($1=="\\plumedfile" || $1=="\\f[" || $1=="\\f{eqnarray*}{" || $1=="\\f{align}{" || match($1,"auxfile") || $1=="\\verbatim" || index($1,"\\code{")!=0 ){inp=1;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment