Skip to content

Commit

Permalink
importFromCodespell.sh: Fixed broken script.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Oct 14, 2019
1 parent fd96512 commit da85229
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions importFromCodespell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ set -e
WORKINGDIR=$(dirname $(readlink -f $0))
cp ${WORKINGDIR}/dictionary_all.txt ${WORKINGDIR}/dictionary_tmp.txt
# include dictionary from codespell
rm -fR ${WORKINGDIR}/codespell_git
mkdir ${WORKINGDIR}/codespell_git
cd ${WORKINGDIR}/codespell_git
git clone https://github.com/codespell-project/codespell.git codespell
cd ${WORKINGDIR}/codespell_git/codespell/
git stash
git pull
make sort-dictionary
cat ${WORKINGDIR}/codespell_git/codespell/codespell_lib/data/dictionary.txt >> ${WORKINGDIR}/dictionary_tmp.txt
cd ${WORKINGDIR}
cat ${WORKINGDIR}/dictionary_tmp.txt | LC_ALL=en_US sort | uniq > ${WORKINGDIR}/dictionary_all.txt
bash sortDictionariesAndCleanup.sh

0 comments on commit da85229

Please sign in to comment.