From 46ebf3dbab5e9587447ff27cad17e6c57a7be783 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 13 Jun 2012 10:55:06 +0200 Subject: [Completion] cleanup --- net:foret/completion/_sdk | 0 net:foret/completion/_sdk-factory | 23 +++++++++++++++++++++++ net:foret/completion/_sdk-factory.sh | 23 ----------------------- net:foret/completion/_sdk-targets | 13 +++++++++++++ net:foret/completion/_set-target | 6 ++++++ net:foret/completion/_set-target-build-env.sh | 6 ------ 6 files changed, 42 insertions(+), 29 deletions(-) delete mode 100644 net:foret/completion/_sdk create mode 100644 net:foret/completion/_sdk-factory delete mode 100644 net:foret/completion/_sdk-factory.sh create mode 100644 net:foret/completion/_sdk-targets create mode 100644 net:foret/completion/_set-target delete mode 100644 net:foret/completion/_set-target-build-env.sh (limited to 'net:foret') diff --git a/net:foret/completion/_sdk b/net:foret/completion/_sdk deleted file mode 100644 index e69de29..0000000 diff --git a/net:foret/completion/_sdk-factory b/net:foret/completion/_sdk-factory new file mode 100644 index 0000000..762b1e3 --- /dev/null +++ b/net:foret/completion/_sdk-factory @@ -0,0 +1,23 @@ +#compdef sdk-factory.sh + +local arguments +arguments=( + '(-s)'{-a,--enable-all-protocols}'[Enable all protocols]' + {-c+,--config=}'[Selects config FILE to use]:file:_files' + {-d,--debug-make}'[Add debugging verbosity to make]' + '(-p)'{-f,--framework-only}'[Generates only the framework libraries]' + '(-f)'{-p,--protocols-only}'[Generates only the protocols bundle libraries]' + {-g,--enable-debug-info}'[Enable debug info in binaries]' + {-h,--enable-host}'[Enable host binaries building]' + {-n,--nomake}'[No make done]' + {-s,--enable-specific-protocols}'[Enable specific protocols]' + {-v,--verbose}'[Enable verbose compilation]' + '1:targets:(($([ -n "$TARGET" ] && for i in "\:Standard_SDK"\ + "-PLUGIN\:Plugin_SDK"\ + "-APPSDK\:Advanced_Plugin_SDK"\ + "-PERF\:Performance_tests" ;\ + echo $TARGET$i)))' + ) + +_arguments $arguments + diff --git a/net:foret/completion/_sdk-factory.sh b/net:foret/completion/_sdk-factory.sh deleted file mode 100644 index 762b1e3..0000000 --- a/net:foret/completion/_sdk-factory.sh +++ /dev/null @@ -1,23 +0,0 @@ -#compdef sdk-factory.sh - -local arguments -arguments=( - '(-s)'{-a,--enable-all-protocols}'[Enable all protocols]' - {-c+,--config=}'[Selects config FILE to use]:file:_files' - {-d,--debug-make}'[Add debugging verbosity to make]' - '(-p)'{-f,--framework-only}'[Generates only the framework libraries]' - '(-f)'{-p,--protocols-only}'[Generates only the protocols bundle libraries]' - {-g,--enable-debug-info}'[Enable debug info in binaries]' - {-h,--enable-host}'[Enable host binaries building]' - {-n,--nomake}'[No make done]' - {-s,--enable-specific-protocols}'[Enable specific protocols]' - {-v,--verbose}'[Enable verbose compilation]' - '1:targets:(($([ -n "$TARGET" ] && for i in "\:Standard_SDK"\ - "-PLUGIN\:Plugin_SDK"\ - "-APPSDK\:Advanced_Plugin_SDK"\ - "-PERF\:Performance_tests" ;\ - echo $TARGET$i)))' - ) - -_arguments $arguments - diff --git a/net:foret/completion/_sdk-targets b/net:foret/completion/_sdk-targets new file mode 100644 index 0000000..4319c8c --- /dev/null +++ b/net:foret/completion/_sdk-targets @@ -0,0 +1,13 @@ +#compdef sdk-patch.sh sdk-test.sh sdk-qa.sh + +local arguments +arguments=( + '1:targets:(($([ -n "$TARGET" ] && for i in "\:Standard_SDK"\ + "-PLUGIN\:Plugin_SDK"\ + "-APPSDK\:Advanced_Plugin_SDK"\ + "-PERF\:Performance_tests" ;\ + echo $TARGET$i)))' + ) + +_arguments $arguments + diff --git a/net:foret/completion/_set-target b/net:foret/completion/_set-target new file mode 100644 index 0000000..53291a8 --- /dev/null +++ b/net:foret/completion/_set-target @@ -0,0 +1,6 @@ +#compdef set-target-build-env.sh + +_arguments "1:build targets:($( + awk '/^ [-_a-zA-Z0-9]+$/ { print $1 }' tools/sdk-targets.txt + ))" + diff --git a/net:foret/completion/_set-target-build-env.sh b/net:foret/completion/_set-target-build-env.sh deleted file mode 100644 index 53291a8..0000000 --- a/net:foret/completion/_set-target-build-env.sh +++ /dev/null @@ -1,6 +0,0 @@ -#compdef set-target-build-env.sh - -_arguments "1:build targets:($( - awk '/^ [-_a-zA-Z0-9]+$/ { print $1 }' tools/sdk-targets.txt - ))" - -- cgit v1.2.3