This is the mail archive of the cygwin-developers@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: new setup.exe in cvs!


On Thu, Jul 13, 2000 at 04:58:09PM -0400, DJ Delorie wrote:
>
>> On Wed, Jul 12, 2000 at 12:35:09PM -0400, DJ Delorie wrote:
>> >I've checked in a patch to setup that moves the mkgroup/mkpasswd stuff
>> >into /etc/postinstall/*.sh, and added support to /etc/profile to run -
>> >once - any script found as /etc/postinstall/*.sh.  I also only do the
>> >mkgroup/mkpasswd stuff if the install happens on NT.
>> 
>> I still don't understand why you'd put this burden on bash.  If things
>> need to be setup shouldn't setup be doing the setup?
>
>OK, this is where it's at now:
>
>* Setup will look for /etc/passwd and /etc/group, and create its own
>  postinstall/*.bat to create whatever's missing.
>
>* setup will look for /etc/postinstall/*.sh, and run each with
>  whatever shell it can find (sh, else bash), if any shell can be
>  found at all.  These scripts are renamed to <script>.done once
>  they've been run (so they won't run again, yet you can audit them).
>
>* Same for /etc/postinstall/*.bat, with cmd.exe (NT) or command.com
>  (others).
>
>This is all done at the end of setup, so I took the extra code out of
>/etc/profile.  I left in the /etc/profile.d/*.sh code, as some
>packages may provide those for per-user configurations.

Sounds good.

cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]