Remove bogus reference to checkout.ico
[TortoiseGit.git] / doc / CheckIDD.sh
blob993f46fbc6ab9385535b73a58db2c903d028d16e
1 #!/bin/bash
2 # Use a Python script to cross check IDD_ values in the resource file with
3 # HIDD_ values in the docs to ensure that every dialog has a link to the help.
4 tmpfile=`mktemp`
5 dirname=$(dirname -- "$0")
6 pushd "$dirname" > /dev/null
7 python3 scripts/chkidd.py source/en/TortoiseGit ../src/Resources/TortoiseProcENG.rc scripts/TortoiseProcENG.ignore > "$tmpfile"
8 python3 scripts/chkidd.py source/en/TortoiseMerge ../src/Resources/TortoiseMergeENG.rc scripts/TortoiseMergeENG.ignore >> "$tmpfile"
9 popd > /dev/null
10 retcode=0
11 if grep -q -v '^#' "$tmpfile"; then
12 cat "$tmpfile"
13 retcode=1
15 rm -- "$tmpfile"
16 exit $retcode