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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jul  7 17:38:56 2013 +0200

scripts/xeno-config: allow shorthand for API name

--skin=api and --api are equivalent.

---

 scripts/xeno-config-cobalt.in  |    8 ++++++--
 scripts/xeno-config-mercury.in |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/scripts/xeno-config-cobalt.in b/scripts/xeno-config-cobalt.in
index 618ee2f..2b5e01e 100644
--- a/scripts/xeno-config-cobalt.in
+++ b/scripts/xeno-config-cobalt.in
@@ -41,7 +41,7 @@ dump_wrappers()
 usage ()
 {
 cat <<EOF
-Usage xeno-config --skin=name OPTIONS
+Usage xeno-config OPTIONS
 Options :
         --help
         --v,--verbose
@@ -50,7 +50,7 @@ Options :
         --ccld
         --arch
         --prefix
-        --skin posix|cobalt|vxworks|psos|alchemy
+        --[skin=]posix/cobalt|vxworks|psos|alchemy
         --cflags
         --ldflags
         --lib*-dir,--libdir,--user-libdir
@@ -62,6 +62,7 @@ EOF
 verbose ()
 {
     echo xeno-config --verbose
+    echo "        --core=cobalt"
     echo "        --version=\"${XENO_VERSION}\""
     echo "        --cc=\"$XENO_CC\""
     echo "        --ccld=\"$XENO_PREFIX/bin/wrap-link.sh $XENO_CC\""
@@ -106,6 +107,9 @@ while test $# -gt 0; do
        --skin=*)
            skin_list="$skin_list `expr "$1" : '--skin=\(.*\)'`"
            ;;
+       --posix|--cobalt|--vxworks|--psos|--alchemy)
+           skin_list="$skin_list `expr "$1" : '--\(.*\)'`"
+           ;;
        --cflags)
            if test -z "$skin_list"; then
                echo "no skin specified, missing --skin before --cflags" 1>&2
diff --git a/scripts/xeno-config-mercury.in b/scripts/xeno-config-mercury.in
index 14bcaea..1d252d5 100644
--- a/scripts/xeno-config-mercury.in
+++ b/scripts/xeno-config-mercury.in
@@ -23,7 +23,7 @@ unset prefix exec_prefix libdir datadir datarootdir 
pkgdatadir includedir skin_l
 usage ()
 {
 cat <<EOF
-Usage xeno-config --skin=skin OPTIONS
+Usage xeno-config OPTIONS
 Options :
         --help
         --v,--verbose
@@ -32,7 +32,7 @@ Options :
         --ccld
         --arch
         --prefix
-        --skin vxworks|psos|alchemy
+        --[skin=]vxworks|psos|alchemy
         --cflags
         --ldflags
         --lib*-dir,--libdir,--user-libdir
@@ -44,6 +44,7 @@ EOF
 verbose ()
 {
     echo xeno-config --verbose
+    echo "        --core=mercury"
     echo "        --version=\"${XENO_VERSION}\""
     echo "        --cc=\"$XENO_CC\""
     echo "        --ccld=\"$XENO_CC\""
@@ -85,6 +86,9 @@ while test $# -gt 0; do
        --skin=*)
            skin_list="$skin_list `expr "$1" : '--skin=\(.*\)'`"
            ;;
+       --vxworks|--psos|--alchemy)
+           skin_list="$skin_list `expr "$1" : '--\(.*\)'`"
+           ;;
        --cflags)
            if test -z "$skin_list"; then
                echo "no skin specified, missing --skin before --cflags" 1>&2


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to