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