-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloopApps.sh
More file actions
executable file
·50 lines (40 loc) · 1.84 KB
/
Copy pathloopApps.sh
File metadata and controls
executable file
·50 lines (40 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# ls -l | grep "drw" | wc -l
# presently (10/26/2021 shows 48 apps)
LOGFILE="loopAppsReport.txt"
date > $LOGFILE
# Slight change so log file is addressed correctly in the loop below
LOGFILE="../loopAppsReport.txt"
# For loop
# I have omitted bimodel here because it has three sets of USFM in it
# and that messes up verse checks.
for f in akha bualkhaw chakma chiru dagaara dagba darlong day \
dendi falamchin haitiancreole hakhachin innerseraji inpuinaga kabiye kaowlu \
kaulong koyraciini lamkaang luxembourgish manipuri matuchin mizo neao paite \
quechua ranglong rathawi rawang rito sango sarakabademe sarakabanaa \
saramadjingaye sarangam simte tagalog taisun tangkhulnaga tenek tumak \
waali warao zarma zokam zotung mbur
do
cd $f
echo "Checking USFM health of $f"
echo "===================================" >> $LOGFILE
echo "Translation for language $f" >> $LOGFILE
echo "===================================" >> $LOGFILE
../../usfmtools/usfmHealthReport.sh >> $LOGFILE
cat usfm.distilledxrefreport >> $LOGFILE
grep "This marker" markers.txt >> $LOGFILE
cat verseErrors.txt >> $LOGFILE
git status >> $LOGFILE
cd ..
done
# End for loop
# Run the following to list all markers that are suspect with filenames:
# find . -name markers.txt -exec grep -H "This marker" {} \;
# Run the following to find all markers that are suspect:
# find . -name markers.txt -exec grep "This marker" {} \; | ../usfmtools/sumBadMarkers.pl > badmarkers.txt
# To find total cross references in each translation, do this:
# find . -name usfm.distilledxrefreport -exec grep -H "total xrefs" {} \; > totalxrefs.txt
# To gather all cross references in the translations, do this:
# find . -name usfm.xrefreport -exec cat {} \; > allxrefs.txt
# To find all versification errors in the translations, do this:
# find . -name verseErrors.txt -exec grep -H "ERROR" {} \; > allVerseErrors.txt