aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchk-po16
1 files changed, 10 insertions, 6 deletions
diff --git a/chk-po b/chk-po
index 63341fe..6a02327 100755
--- a/chk-po
+++ b/chk-po
@@ -6,17 +6,21 @@
clear
for pofile in po/*; do
echo "Checking - ${pofile}"
+ entries=0
while read line ; do
- #echo $line
- findstr="$(echo "$line" | grep 'msgid'|cut -d'"' -f2)"
+
+ findid="$(echo "$line" | grep 'msgid'|cut -d'"' -f2)"
+ [[ ${#findid} = 0 ]] && continue
# Skip these two strings as they include a variable in the script.
- if echo "$findstr"|grep -q "that would be used"; then
+ if echo "$findid"|grep -q "that would be used"; then
continue
fi
- if ! fgrep -q "$findstr" remove-old-kernels; then
- echo "${pofile} - ${findstr}"
+ ((entries++))
+ if ! fgrep -q "$findid" remove-old-kernels; then
+ echo "${pofile} - ${findid}"
fi
done < "${pofile}"
-# echo ""
+ echo strings - $entries
done
+