All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Cosmetic changes to script xeno-config + man page
@ 2005-10-16 16:57 Romain Lenglet
  2005-10-17 16:33 ` Jim Cromie
  0 siblings, 1 reply; 12+ messages in thread
From: Romain Lenglet @ 2005-10-16 16:57 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 2272 bytes --]

Hi,


Here is a man page that I have written for xeno-config.
Philippe, you will have to create a "man" directory to contain 
that man file and an GNUmakefile.am file that contains:
man1_MANS = xeno-config.man
dist_man1_MANS = $(man1_MANS)

And add "man" to the SUBDIRS in the root GNUmakefile.am.


I will write man pages for xeno-info, xeno-load and xeno-test 
when I have some time this week.


By the way, I noticed that the output of function usage() in that 
script was wrong. Here is a correct version, to replace the one 
in scripts/xeno-config.in:
usage ()
{
cat <<EOF
Usage xeno-config OPTIONS
Options :
        --help
        -v,--verbose
        --version
        --cc
        --cross-compile
        --arch
        --subarch
        --prefix
        --config
        --mod*-cflags,--kernel-cflags
        --xeno-cflags,--fusion-cflags
        --xeno-ldflags,--fusion-ldflags
        --posix-cflags
        --posix-ldflags
        --uvm-cflags
        --uvm-ldflags
        --linux-dir,--linux
        --linux-ver*
        --mod*-dir
        --sym*-dir
        --lib*-dir,--libdir,--user-libdir
EOF
    exit $1
}


And I also noticed a few echos with unquoted "*" in function 
verbose(). Here is a correct version without any "*":
verbose ()
{
    echo xeno-config --verbose

    echo "   " --version="\"${XENO_VERSION}\""
    echo "   " --cc="\"$XENO_CC\""
    echo "   " --cross-compile="\"$CROSS_COMPILE\""
    echo "   " --arch="\"$XENO_TARGET_ARCH\""
    echo "   " --subarch="\"$XENO_TARGET_SUBARCH\""
    echo "   " --prefix="\"$XENO_PREFIX\""
    echo "   " --config="\"$XENO_CONFIG\""
    echo "   " --kernel-cflags="\"$XENO_KERNEL_CFLAGS\""

    echo "   " --xeno-cflags="\"$XENO_BASE_CFLAGS\""
    echo "   " --xeno-ldflags="\"$XENO_BASE_LDFLAGS\""
    echo "   " --posix-cflags="\"$XENO_POSIX_CFLAGS\""
    echo "   " --posix-ldflags="\"$XENO_POSIX_LDFLAGS\""
    echo "   " --uvm-cflags="\"=$XENO_UVM_CFLAGS \""
    echo "   " --uvm-ldflags="\"=$XENO_UVM_LDFLAGS\""

    echo "   " --module-dir="\"=$XENO_MODULE_DIR\""
    echo "   " --symbol-dir="\"$XENO_SYMBOL_DIR\""
    echo "   " --libdir="\"$XENO_LIBRARY_DIR\""
    echo "   " --linux-dir="\"$XENO_LINUX_DIR\""
    echo "   " --linux-version="\"$XENO_LINUX_VERSION\""
}


-- 
Romain Lenglet

[-- Attachment #2: xeno-config.man --]
[-- Type: application/x-troff-man, Size: 5999 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [Xenomai-core] Cosmetic changes to script xeno-config + man page
@ 2005-10-19  7:37 Fillod Stephane
  2005-10-19  7:47 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 12+ messages in thread
From: Fillod Stephane @ 2005-10-19  7:37 UTC (permalink / raw)
  To: Romain Lenglet; +Cc: xenomai

Romain Lenglet wrote:
[..]
>I found a better solution, that could be a replacement for both a 
>xenomai.m4 trick, and the xeno-config script: pkg-config.
>http://pkgconfig.freedesktop.org/wiki/
>There are packages for pkgconfig in both Debian and RedHat, 
>AFAIK, and surely for all other distribs.
>
>I will look into making a xenomai.pc file.

Make it a xenomai.pc.in file   ;-)

-- 
Stephane



^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: [Xenomai-core] Cosmetic changes to script xeno-config + man page
@ 2005-10-19  8:15 Fillod Stephane
  2005-10-19  8:42 ` Romain Lenglet
  0 siblings, 1 reply; 12+ messages in thread
From: Fillod Stephane @ 2005-10-19  8:15 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Gilles Chanteperdrix wrote:
> > Romain Lenglet wrote:
> > [..]
> > >I found a better solution, that could be a replacement for both a 
> > >xenomai.m4 trick, and the xeno-config script: pkg-config.
> > >http://pkgconfig.freedesktop.org/wiki/
> > >There are packages for pkgconfig in both Debian and RedHat, 
> > >AFAIK, and surely for all other distribs.
> > >
> > >I will look into making a xenomai.pc file.
> > 
> > Make it a xenomai.pc.in file   ;-)
>
> I am not sure we want to depend on pkg-config...

Gilles, put it the other way around. Xenomai won't depend on pkg-config,
but applications using Xenomai, will happily depend on it, if they
choose this option. To me, pkg-config shouldn't be a replacement,
but an alternative choice to xeno-config.

-- 
Stephane



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-10-19  8:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-16 16:57 [Xenomai-core] Cosmetic changes to script xeno-config + man page Romain Lenglet
2005-10-17 16:33 ` Jim Cromie
2005-10-17 17:17   ` Romain Lenglet
2005-10-17 19:06     ` Gilles Chanteperdrix
2005-10-18  6:20     ` Gilles Chanteperdrix
2005-10-18  8:59       ` Romain Lenglet
2005-10-18 17:29         ` Gilles Chanteperdrix
2005-10-19  4:53           ` Romain Lenglet
  -- strict thread matches above, loose matches on Subject: below --
2005-10-19  7:37 Fillod Stephane
2005-10-19  7:47 ` Gilles Chanteperdrix
2005-10-19  8:15 Fillod Stephane
2005-10-19  8:42 ` Romain Lenglet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.