[Top][All Lists]

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

Re: How do I write a file to default sysconfdir to /etc?

From: Jim
Subject: Re: How do I write a file to default sysconfdir to /etc?
Date: Tue, 30 Jan 2007 10:51:35 -0500
User-agent: Thunderbird (X11/20070103)

Bob Proulx wrote:
Jim Lynch wrote:
I'd really like a way to enable this for specific applications, not
as a site default. ... ... ...  If not, I'll just have to go back to
my cludgy way of adding my own rules to copy it to a hard coded
/etc, (Ugh).

What I do is to keep a script in the parent directory
with all of the options that I want specified.  Then when configuring
those special applications I run the script.  This makes it more
self-documenting what I am doing and I can remember it later.

Example "../" script:

  #!/bin/sh -x
  ./configure --prefix=/usr/local/build/coreutils "$@"

Then in my build directory:

  sh ../
  make check
  make install

In your case you would want to set --sysconfdir=/etc.  Something like

  #!/bin/sh -x
  ./configure --sysconfdir=/etc "$@"


Hi, Bob, thanks that's a good idea. I only set things two different ways, one for development and one for building rpms. I could have two shell scripts.


reply via email to

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