Univention Bugzilla – Attachment 9847 Details for
Bug 48698
Fix spelling errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Find and fix spelling errors
48698_codespell.sh (text/plain), 1.60 KB, created by
Philipp Hahn
on 2019-02-20 08:36 CET
(
hide
)
Description:
Find and fix spelling errors
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2019-02-20 08:36 CET
Size:
1.60 KB
patch
obsolete
>#!/bin/bash >set -e -u >cd ~/REPOS/ucs44 > >spell () { > declare -a ignore=( > shim > .git > \*.ai > \*.cer > \*.class > \*.csv > \*.cvd > \*.deb > \*.der > \*.efi > \*.efi.signed > \*.gd2 > \*.gif > \*.gpg > \*.gz > \*.ico > \*.iso > \*.jpeg > \*.jpg > \*.ldif > \*.m4 > \*.mo > \*.odg > \*.pdf > \*.png > \*.png.fallback > \*.po > \*.pyc > \*.svg > \*.svgz > \*.swf > \*.ttf > \*.woff > \*.xcf > \*.xz > \*.zi > \*.univention-config-registry-variables > countryInfo.txt > city_data.json > nameservers.json > country_data.json > iso-languagecodes.txt > timeZones.txt > privacy_statement.json > languagelist > ltmain.sh > aclocal.m4 > configure > config.sub > errors.translation.json > \*-de.xml > \*-de-\*.xml > handbuch-\*.xml > wafsamba > waf-svn > \*.desktop > \*.theme > de_DE > fr_FR > protokoll1.txt > protokoll2.txt > protokoll3.txt > self-service-blog-artikel.txt > README_DE > README_POST_INSTALL_DE > sonderfaelle_gruppen.txt > php-krb5 > druckertest.sh > seccomp-systemd.json > ) > declare -a args=() > local arg > for arg in "${ignore[@]}" > do > [ 0 -lt "${#args[@]}" ] && args+=(-o) > args+=(-name "$arg") > done > find \( "${args[@]}" \) -prune -o -type f -exec codespell -s -c {} + >} > >old='' msg='' >while read -r file lnr src dst >do > sed -ne "${lnr}p" "$file" | grep -Fq "$src" || { grep -nhF "$src" "$file" ; exit 1; } > [ -n "$old" ] && [ "$(echo "$old" | tr '[:upper:]' '[:lower:]')" != "$(echo "$dst" | tr '[:upper:]' '[:lower:]')" ] && git commit -m "$msg" > sed -i -e "${lnr}s/\<${src}\>/${dst}/" "$file" > git add "$file" > old="$dst" msg="Bug #48698 spell: $src -> $dst" >done <"${0%.sh}.csv" >[ -n "$msg" ] && git commit -m "$msg"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 48698
: 9847