[Portland] [Patch] Portability and Xfce

Kevin Krammer kevin.krammer at gmx.at
Mon Apr 24 23:53:01 EEST 2006


On Monday 24 April 2006 22:24, Benedikt Meurer wrote:
> Kevin Krammer wrote:
> >>See attached AWK script (with comments), just add the script to the
> >>repository (doesn't need to be installed) and change the line in
> >>Makefile.in to invoke the script to generate the *.usage files. I guess
> >>stuff will get to messy when adding more sed magic to the Makefile, and
> >>awk is way more readable than sed. ;-)
> >
> > Thanks alot.
> > However I'd like to have usage and examples separated, so the scripts can
> > print usage on errors and examples only on request (at --help)
> >
> > I think we just copy the behavior for usage, i.e. introduce a function
> > like this
> >
> > examples()
> > {
> > cat << _EXAMPLES
> > _EXAMPLES
> > }
> >
> > Can you modify your script accordingly? Maybe also send a patch for
> > Makefile.in?
>
> Sure, see attached patch and script. You just need to add the call to
> examples(). :)

Excellent!

Script added and patch applied.
--help is now a lot more helpful :)

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtcentre.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/portland/attachments/20060424/967bea26/attachment.pgp


More information about the Portland mailing list