From ee2d736222fca41ce5034bfb98b5270e60b65f06 Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Thu, 27 Jul 2023 00:05:15 +1200
Subject: [PATCH] Fix some typos and spelling mistakes.

---
 ChangeLog              |  6 +++---
 THANKS                 |  2 +-
 bin/mythtv-status      | 10 +++++-----
 bin/mythtv-update-motd |  6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 18838b2..91d00e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,7 +7,7 @@
   Include my Makefile in the tarball, this allows using "make install" to install
   mythtv-status.
 
-  Make all shell scripts much clenaer according to shellcheck.
+  Make all shell scripts much cleaner according to shellcheck.
 
   Refresh URLs in FAQ, update libmythtv-perl package name.
 
@@ -45,7 +45,7 @@
 
 2019-01-11  Andrew Ruthven
   Add support for Fedora to mythtv-update-motd based on proposed file
-  from Göran Uddebor.
+  from Göran Uddebog.
 
   mythtv-update-status now uses UPDATE_MOTD and UPDATE_MOTD_ARGS
   to replace RUN and ARGS respectively. Both RUN and ARGS will be
@@ -143,7 +143,7 @@
 2013-10-28	Andrew Ruthven
         Guard against zero total disk space, this affected Werner Mahr.
 
-	Fix up processing of dates with oldstyle timestamps for in
+	Fix up processing of dates with old style timestamps for in
 	progress recordings.
 
 	Add support to specify the date we're running mythtv-status on
diff --git a/THANKS b/THANKS
index 11ae93d..0ce4b75 100644
--- a/THANKS
+++ b/THANKS
@@ -21,7 +21,7 @@ I'd like to thank the following people:
  - Steve Gunther   - Doing some home work on the OSD declutter changes.
  - Julian Gilbey   - Fixing up some errors in reporting the next scheduled
                      recording.
- - Göran Uddeborg  - Reporting the DateCalc behaviour chaneg and various other
+ - Göran Uddeborg  - Reporting the DateCalc behaviour change and various other
                      fixes.
  - Illés Sol       - UTF-8 character handling from MythTV::Program.
  - Eric Wilde      - Sending in a stack of his little improvements.
diff --git a/bin/mythtv-status b/bin/mythtv-status
index 9f598de..5bc94b6 100755
--- a/bin/mythtv-status
+++ b/bin/mythtv-status
@@ -817,7 +817,7 @@ if (scalar(@oneliners) > 0) {
 
   # Put the one liners together, with leading dots to the colon.
   # We allow a hack for MS Outlook which normally recognises the
-  # oneliners block as a paragrap and wraps it.  If it sees "bullets"
+  # oneliners block as a paragraph and wraps it.  If it sees "bullets"
   # it believes it is a bulleted list and leaves it alone.
   my $oneliners = "";
   for $line (@oneliners) {
@@ -901,7 +901,7 @@ sub load_xml {
   # Parse the XML
   my $parser = XML::LibXML->new();
 
-  # Some XML data seems to have badness in it, including non-existant
+  # Some XML data seems to have badness in it, including non-existent
   # UTF-8 characters.  We'll try and recover.
   $parser->recover(1);
   $parser->recover_silently(1)
@@ -943,7 +943,7 @@ sub load_perl_api {
       if $verbose;
   } else {
 
-    # Surpress warnings from DBI.  I tried unsetting $^W but that is ignored.
+    # Suppress warnings from DBI.  I tried unsetting $^W but that is ignored.
     local($SIG{__WARN__}) = sub { if ($verbose) { print shift } };
     eval { $myth = new MythTV() };
 
@@ -1046,7 +1046,7 @@ sub process_conflicts {
     my $show;
     {
       # MythTV::Program currently has a slightly broken line with a numeric
-      # comparision.
+      # comparison.
       local($^W) = 0;
       $show = new MythTV::Program(@$row);
     }
@@ -1095,7 +1095,7 @@ sub process_auto_expire {
     my $show;
     {
       # MythTV::Program currently has a slightly broken line with a numeric
-      # comparision.
+      # comparison.
       local($^W) = 0;
       $show = new MythTV::Program(@$row);
     }
diff --git a/bin/mythtv-update-motd b/bin/mythtv-update-motd
index ba9ebec..a507e7f 100755
--- a/bin/mythtv-update-motd
+++ b/bin/mythtv-update-motd
@@ -28,7 +28,7 @@ TEMPFILE=/run/motd.mythtv-status
 
 if [ -d /etc/update-motd.d ]
 then
-  # We want to generate file which only contains the MythTV Status
+  # We want to generate a file which only contains the MythTV Status
   # as a snippet in /etc/update-motd.d will cat this file.
   #
   # Current (as of 2019-01-1) Debian and Ubuntu releases use this
@@ -56,12 +56,12 @@ else
     TEMPFILE=/etc/motd.mythtv-status
   fi
 
-  # Just incase someone has removed their motd file.
+  # Just in case someone has removed their motd file.
   [ -f $WORKFILE ] || touch $WORKFILE
   # Keep the original content around.
   [ -f $STUBFILE ] || cp $WORKFILE $STUBFILE
 
-  # If the tempfile is less than 15 minutes old, object, otherwise
+  # If the temp file is less than 15 minutes old, object, otherwise
   # we'll assume that something went wrong and remove it.
   if [ -f $TEMPFILE ]; then
     AGE=$(stat -c "%Z" $TEMPFILE);
-- 
2.30.2