bug-coreutils
[Top][All Lists]
Advanced

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

Re: proposed new program: getpwnam [Re: --format flag


From: Bruce Korb
Subject: Re: proposed new program: getpwnam [Re: --format flag
Date: Mon, 29 Dec 2003 17:15:06 -0800

Bruce Korb wrote:

> > But `getpwnam --shell root' is certainly easier to type.  And
> > as a real program, it'd be able to produce better (including
> > internationalized) diagnostics and do better error checking ...

> However, in direct answer to your question, I'd consider either adapting
> this thing to your framework, or adapting the other way.  That might
> take a while, though. ;)

Hi Jim,

I sent in the reworked program some six hours ago, but haven't
seen it.  Have you seen the email?  Anyway, instead of attaching
the files directly, you can pull the tarball from here:

   http://autogen.sf.net/data/getpwnam.tar.gz

It contains the following:

the patch for coreutils/src/Makefile.am:
  getpw/Makefile.am.patch

Hand edited sources:
  getpw/getpwnam.c
  getpw/getpwnam-opts.def
  getpw/getopt.tpl

The last is a template for generating the code to use "getopt_long"
instead of using libopts:
  getpw/getopt-getpwnam.c

And the rest of the generated sources that are derived by using
the standard AutoOpts templates:
  getpw/getpwnam.1
  getpw/getpwnam-opts.c
  getpw/getpwnam-opts.h
  getpw/getpwnam.texi
  getpw/getpwnam.menu

It would be my expectation that these would all be distributed
and only rebuilt with a special make rule (e.g. ``make gen-getpwnam'')




reply via email to

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