In message <[email protected]> on Sun, 19 Jul 2015 
08:42:12 -0500, "Matthew D. Fuller" <[email protected]> said:

fullermd> 
fullermd> On my list to bring up sometime, and now's as good as any: let's
fullermd> simultaneously accept that it's not 1990, and we're not twm anymore,
fullermd> and relocate our install files.
fullermd> 
fullermd> Our current install looks like this:
fullermd> 
fullermd> /usr/local/bin/ctwm
fullermd> /usr/local/lib/X11/twm/images/[...  whole bunches of .xpm  ...]
fullermd> /usr/local/lib/X11/twm/system.ctwmrc
fullermd> /usr/local/man/man1/ctwm.1.gz
fullermd> 
fullermd> (sub /usr/local with /usr or whatever your $PREFIX might be)
fullermd> 
fullermd> The binary and manpage are fine, they're where they should be.  The
fullermd> fallback config, I'm not sure serves much purpose as a running file;
fullermd> it's the fallback that's compiled into ctwm, so it's of more use as an
fullermd> example than as a running config.  And aside from looking under twm
fullermd> for ctwm, it's a weird place nowadays for config files.
fullermd> 
fullermd> 
fullermd> So I suggest we shuffle things around so that we still have
fullermd> 
fullermd> $PREFIX/bin/ctwm
fullermd> $PREFIX/man/man1/ctwm.1.gz   # or share/man if that exists

Current (GNU) practices suggest $PREFIX/share/man/...

I'd suggest a study of
http://www.gnu.org/prep/standards/standards.html#Directory-Variables
for more info.

fullermd> but otherwise create something more like
fullermd> 
fullermd> $PREFIX/share/ctwm/images/[...  whole bunches of .xpm  ...]

+1

fullermd> $PREFIX/share/ctwm/samples/system.ctwmrc

If you're going to have it being documentation rather than a fallback,
I'd say that $PREFIX/share/doc/ctwm/examples/system.ctwmrc is a place
that's much more on par with current (GNU) practices.

fullermd> for the install files, and change the search to look for a
fullermd> 
fullermd> $PREFIX/etc/system.ctwmrc

This is actually something that deserves its own variable.  The link
above would suggest $SYSCONFDIR/ctwm/system.ctwmrc, with SYSCONFDIR
being "$PREFIX/etc" by default, but thereby also changeable to be
"/etc" by whoever wants to install it that way (which would be most
package builders, I suspect).

fullermd> Also, it might be handy to go ahead and install the HTML version of
fullermd> the manual, and possibly the CHANGES as well.  Having our own
fullermd> share/ctwm/ gives us good homes for those.

$PREFIX/share/doc/ctwm

-- 
Richard Levitte                         [email protected]
                                        http://richard.levitte.org/

"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish

Reply via email to