lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] How to patch in source files?


From: Thomas Dickey
Subject: Re: [Lynx-dev] How to patch in source files?
Date: Mon, 28 Dec 2020 06:29:30 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Sun, Dec 27, 2020 at 08:58:59PM -0600, Magnus Anderson wrote:
> I'm trying to slightly modify some aspects of lynx to make the user
> interface more to my liking (specifically, I want links to be numbered by
> letters, not numbers, so that I can use lynx with my custom hotkeys the
> same way I use my regular browser. Might later try to add copy-paste
> support or something else too).
> 
> What I'm stuck on is that when I run the `configure` script, it generates
> makefiles that only compile the regular lynx code. If I edit src/makefile's
> OBJS variable and add my pathed-in files, then everything works (well, lynx
> compiles. I'm still working on the lettered links). This is fine for my
> personal use, although it's annoying. However if I ever want to distribute
> the change then it probably isn't good to use a hack like that.

I'd edit the makefile.in files, and apply that (regenerating the makefile
files) by running config.status (at the top of the source-tree):

        ./configure
        vi src/makefile.in
        ./config.status
 
> Also, somewhere while finding this mailing list I read that there is an
> official way to share lynx patches (something about diff -u). Where can I

        tar xf lynx-whatever.tar.gz
        mv lynx-whatever lynx-whatever.new
        tar xf lynx-whatever.tar.gz
        vi lynx-whatever.new/makefile.in
        diff -Naur lynx-whatever lynx-whatever.new >mychanges.diff

> find these patches, or submit one? I was planning on just creating a

occasionally someone mails a diff on the mailing list,
and I make whatever fixes are needed (or point out on
the mailing why it doesn't fit)

> repository on github or something, but it would probably be good to also do
> it in the official way, and I'm also curious what other patches exist.
> _______________________________________________
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]