Module: xenomai-2.5
Branch: master
Commit: a02c8026f02d061bc1d6bcfa27acfc78ffe9885c
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=a02c8026f02d061bc1d6bcfa27acfc78ffe9885c

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Jan 25 07:44:55 2011 +0100

scripts: allow getting rtdm skin flags with xeno-config

---

 scripts/xeno-config.in |  126 ++++++++++++++++++++++++------------------------
 1 files changed, 63 insertions(+), 63 deletions(-)

diff --git a/scripts/xeno-config.in b/scripts/xeno-config.in
index fffffd8..6226888 100644
--- a/scripts/xeno-config.in
+++ b/scripts/xeno-config.in
@@ -26,16 +26,16 @@ unset prefix exec_prefix libdir datadir datarootdir 
pkgdatadir includedir
 posix_ldflags ()
 {
     if test \! -r $XENO_POSIX_WRAPPERS; then
-        echo "POSIX support is not available" >&2
-        exit 1
+       echo "POSIX support is not available" >&2
+       exit 1
     fi
     if test "$XENO_POSIX_FAST_WRAPPING" = "yes"; then
-        echo -n "-Wl,@$XENO_POSIX_WRAPPERS $XENO_POSIX_LDFLAGS"
+       echo -n "-Wl,@$XENO_POSIX_WRAPPERS $XENO_POSIX_LDFLAGS"
     else
-        wrappers=`while read wrap_option symbol; do \
-                      echo -n "-Wl,$wrap_option,$symbol " ; \
-                  done < $XENO_POSIX_WRAPPERS`
-        echo -n "$wrappers $XENO_POSIX_LDFLAGS"
+       wrappers=`while read wrap_option symbol; do \
+                     echo -n "-Wl,$wrap_option,$symbol " ; \
+                 done < $XENO_POSIX_WRAPPERS`
+       echo -n "$wrappers $XENO_POSIX_LDFLAGS"
     fi
 }
 
@@ -44,22 +44,22 @@ usage ()
 cat <<EOF
 Usage xeno-config --skin=skinname OPTIONS
 Options :
-        --help
-        --v,--verbose
-        --version
-        --cc
-        --arch
-        --prefix
-        --skin native|posix|psos|rtai|rtdm|uitron|vrtx|vxworks
-        --cflags
-        --ldflags
-        --lib*-dir,--libdir,--user-libdir
+       --help
+       --v,--verbose
+       --version
+       --cc
+       --arch
+       --prefix
+       --skin native|posix|psos|rtai|rtdm|uitron|vrtx|vxworks
+       --cflags
+       --ldflags
+       --lib*-dir,--libdir,--user-libdir
 
 Deprecated options:
-        --xeno-cflags
-        --xeno-ldflags
-        --posix-cflags
-        --posix-ldflags
+       --xeno-cflags
+       --xeno-ldflags
+       --posix-cflags
+       --posix-ldflags
 EOF
     exit $1
 }
@@ -85,25 +85,25 @@ fi
 
 while test $# -gt 0; do
     case "$1" in
-        --v|--verbose)
-            verbose $*
-            exit 0
-            ;;
-        --version)
-            echo ${XENO_VERSION}
-            ;;
-        --cc)
-            echo $XENO_CC
-            ;;
-        --arch)
-            echo $XENO_TARGET_ARCH
-            ;;
-        --prefix)
-            echo $XENO_PREFIX
-            ;;
-        --lib*-dir|--libdir|--user-libdir)
-            echo $XENO_LIBRARY_DIR
-            ;;
+       --v|--verbose)
+           verbose $*
+           exit 0
+           ;;
+       --version)
+           echo ${XENO_VERSION}
+           ;;
+       --cc)
+           echo $XENO_CC
+           ;;
+       --arch)
+           echo $XENO_TARGET_ARCH
+           ;;
+       --prefix)
+           echo $XENO_PREFIX
+           ;;
+       --lib*-dir|--libdir|--user-libdir)
+           echo $XENO_LIBRARY_DIR
+           ;;
        --skin)
            skin="$2"
            shift
@@ -139,7 +139,7 @@ while test $# -gt 0; do
                    posix_ldflags
                    echo
                    ;;
-               native|psos|psos+|rtai|uitron|vrtx|vxworks)
+               native|psos|psos+|rtai|rtdm|uitron|vrtx|vxworks)
                    if [ "x$skin" = "xpsos+" ]; then
                        skin="psos"
                    fi
@@ -156,29 +156,29 @@ while test $# -gt 0; do
            esac
            ;;
 
-        --xeno-cflags)
-           echo "$1" is deprecated, use --skin=name --cflags instead 1>&2 
-            echo $XENO_BASE_CFLAGS
-            ;;
-        --xeno-ldflags)
-           echo "$1" is deprecated, use --skin=name --ldflags instead 1>&2 
-            echo $XENO_BASE_LDFLAGS
-            ;;
-        --posix-cflags)
-           echo "$1" is deprecated, use --skin=posix --cflags instead 1>&2 
+       --xeno-cflags)
+           echo "$1" is deprecated, use --skin=name --cflags instead 1>&2
+           echo $XENO_BASE_CFLAGS
+           ;;
+       --xeno-ldflags)
+           echo "$1" is deprecated, use --skin=name --ldflags instead 1>&2
+           echo $XENO_BASE_LDFLAGS
+           ;;
+       --posix-cflags)
+           echo "$1" is deprecated, use --skin=posix --cflags instead 1>&2
            echo $XENO_BASE_CFLAGS -I$XENO_INCLUDE_DIR/posix
-            ;;
-        --posix-ldflags)
-           echo "$1" is deprecated, use --skin=posix --ldflags instead 1>&2 
-            posix_ldflags
-            echo
-            ;;
-        --help)
-            usage 0 1>&2
-            ;;
-        *)
-         usage 1 1>&2
-         ;;
+           ;;
+       --posix-ldflags)
+           echo "$1" is deprecated, use --skin=posix --ldflags instead 1>&2
+           posix_ldflags
+           echo
+           ;;
+       --help)
+           usage 0 1>&2
+           ;;
+       *)
+        usage 1 1>&2
+        ;;
     esac
     shift
 done


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to