job.sh (932B)
1 #!/bin/bash 2 set -exuo pipefail 3 4 job_dir=$(dirname "${BASH_SOURCE[0]}") 5 6 skip=$(cat <<EOF 7 ABOUT-NLS 8 */debian/tmp/** 9 *.bbl 10 *.bib 11 *build-aux* 12 *.bst 13 *.cache/* 14 ChangeLog 15 *.cls 16 configure* 17 config.status 18 config.guess 19 depcomp 20 */contrib/* 21 */contrib/hellos/** 22 *.dat 23 *.deflate 24 *.doc 25 */doc/* 26 **/doc/flows/main.de.tex 27 */doc/texinfo.tex 28 *.docx 29 *.ecc 30 *.eot 31 *.epgz 32 *.eps 33 *.epub 34 *.fee 35 *.fees 36 *.file 37 **/fonts/** 38 *.gif 39 */.git/** 40 *.gz 41 */i18n/strings.ts 42 *.info 43 *.jpeg 44 *.jpg 45 *.??.json 46 *.json 47 *.json-* 48 */keys/* 49 *key 50 *.latexmkrc 51 *libtool* 52 ltmain.sh 53 *.log 54 */m4/* 55 *.m4 56 **/*.map 57 *.min.js 58 *.mp4 59 *.odg 60 *.ods 61 *.odt 62 *.pack.js 63 *.pdf 64 *.png 65 *.PNG 66 *.po 67 *.pptx 68 *.priv 69 **/rfc.bib 70 *.rpath 71 **/signing-key.asc 72 *.sqlite 73 **/*.svg 74 *.svg 75 *.tag 76 */templating/test?/** 77 *.tgz 78 *.ttf 79 *.ttf 80 **/valgrind.h 81 */vpn/tests/** 82 *.wav 83 *.woff 84 *.woff2 85 *.xcf 86 *.xlsx 87 *.zkey 88 */third_party/** 89 EOF 90 ); 91 92 echo "Current directory: $(pwd)" 93 94 codespell -I "${job_dir}"/dictionary.txt -S ${skip//$'\n'/,} $@