[mythtv] [mythtv-commits] Ticket #2069: Add Support for Singapore TV Channel Frequencies
Michael T. Dean
mtdean at thirdcontact.com
Tue Jul 18 15:48:06 UTC 2006
On 07/18/2006 10:48 AM, MythTV wrote:
>#2069: Add Support for Singapore TV Channel Frequencies
>-------------------------+--------------------------------------------------
> Reporter: Teo En Ming | Owner: mythtv-dev
> Type: patch | Status: new
> Priority: major | Milestone: 0.20
>Component: mythtv | Version: 0.19
> Severity: medium |
>-------------------------+--------------------------------------------------
> I have patched frequencies.c and backendsettings.cpp to support Singapore
> in the Frequency Table. Hope support for Singapore will be available in
> the 0.20 release. If there are any queries, please drop me an email at
> mr_teo_en_ming [at] yahoo dt com dt sg
>
>
Teo En Ming, instead of uploading the new changed files, we need "patch"
files showing the differences between the original and changed
versions. This allows us to see where you started (i.e. revision of the
original file) and what changes were made.
The easiest way to get these is by using SVN to create the patch (or
"diff"). Once you check out a working copy of the source (as described
at http://svn.mythtv.org ) to your local hard drive, make the desired
changes and then execute the following command from the top level of the
source tree (i.e. in this case--since the changed files are in the
"mythtv" repository--from the "mythtv" directory):
svn diff > ~/mythtv-singapore_frequency_table.patch
(which redirects the output of "svn diff" to a file in your home
directory called "mythtv-singapore_frequency_table.patch"). Or, if
you've made other unrelated changes to files in the working copy, you
can be specific about the files you "diff" with)
svn diff libs/libmythtv/frequencies.c >
~/mythtv-singapore_frequency_table.patch
If you're not using SVN, you can still make the patch, but you'll have
to make a copy of the original file and get a difference between the
before and after files. For example, I would use:
mv libs/libmythtv/frequencies.c libs/libmythtv/frequencies.c-orig
cp !$ !:1
(This maintains the date/time on the original so that the edited file
has a newer time in the patch.) Then change
libs/libmythtv/frequencies.c and execute the following from the mythtv
directory:
diff -Nau libs/libmythtv/frequencies.c-orig libs/libmythtv/frequencies.c
> ~/mythtv-singapore_frequency_table.patch
Note, however, that the patch should be against SVN trunk--the current
development version of mythtv. If you're not using SVN trunk, but are
using 0.19-fixes, it should be close enough (in this case) and I can
help you get a patch against trunk.
If you're using mythtv-0.19 (downloaded a tarball from the website--and
it looks like you are because of the changes to backedsettings.cpp), I
/highly/ recommend you download 0.19-fixes (as described at
http://svn.mythtv.org/ ) and make a patch against that version using
SVN. You'll also find that your MythTV will work /much/ better (there
were some important fixes in 0.19-fixes that you don't want to run
without ;). If you can't do this, please let me know and I'll modify
the patch for SVN trunk, but--for your sake--I really think you should
upgrade to 0.19-fixes (where, since you'll be using SVN, it will be easy
to make a patch). And, since you're compiling MythTV, anyway, it should
be a simple upgrade. :)
Thank you for helping out with MythTV.
Mike
More information about the mythtv-dev
mailing list