Accepting request 34678 from shells
checked in (request 34678) OBS-URL: https://build.opensuse.org/request/show/34678 OBS-URL: https://build.opensuse.org/package/show/shells/zsh?expand=0&rev=41
This commit is contained in:
parent
c160f35c6c
commit
7106e73f5f
27
_osc
27
_osc
@ -1,6 +1,6 @@
|
|||||||
#compdef osc
|
#compdef osc
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009,2010 Holger Macht <holger@homac.de>
|
# Copyright (C) 2009 Holger Macht <holger@homac.de>
|
||||||
#
|
#
|
||||||
# This file is released under the GPLv2.
|
# This file is released under the GPLv2.
|
||||||
#
|
#
|
||||||
@ -8,22 +8,9 @@
|
|||||||
#
|
#
|
||||||
# Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no
|
# Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no
|
||||||
# zstyle ':completion:*:osc-subcommand:*' verbose no
|
# zstyle ':completion:*:osc-subcommand:*' verbose no
|
||||||
#
|
|
||||||
# Use the variables $ZSH_OSC_BUILD_TARGETS_EXTRA and $ZSH_OSC_PROJECTS_EXTRA to
|
|
||||||
# extend the list of possible completions in your ~/.zshrc like that:
|
|
||||||
# export OSC_PROJECTS_EXTRA="Base:System Base:shells"
|
|
||||||
#
|
#
|
||||||
# version 0.2
|
# version 0.1
|
||||||
#
|
#
|
||||||
|
|
||||||
OSC_BUILD_TARGETS="openSUSE_10.2 openSUSE_10.3 openSUSE_11.0 openSUSE_11.1 openSUSE_11.2 openSUSE_11.3 openSUSE_Factory"
|
|
||||||
OSC_PROJECTS="openSUSE:Factory openSUSE:11.2 openSUSE:11.3 openSUSE:11.1 openSUSE:11.0 openSUSE:10.3"
|
|
||||||
|
|
||||||
# user defined variables $OSC_BUILD_TARGETS_EXTRA and
|
|
||||||
# $OSC_PROJECTS_EXTRA can add to the project/build target list
|
|
||||||
OSC_BUILD_TARGETS="$OSC_BUILD_TARGETS $ZSH_OSC_BUILD_TARGETS_EXTRA"
|
|
||||||
OSC_PROJECTS="$OSC_PROJECTS $ZSH_OSC_PROJECTS_EXTRA"
|
|
||||||
|
|
||||||
# Main dispatcher
|
# Main dispatcher
|
||||||
|
|
||||||
_osc() {
|
_osc() {
|
||||||
@ -42,7 +29,7 @@ _osc() {
|
|||||||
_osc_cmd_getbinaries
|
_osc_cmd_getbinaries
|
||||||
elif [ "$cmd" = "checkout" -o "$cmd" = "co" -o "$cmd" = "branch" ]; then
|
elif [ "$cmd" = "checkout" -o "$cmd" = "co" -o "$cmd" = "branch" ]; then
|
||||||
_osc_cmd_checkout
|
_osc_cmd_checkout
|
||||||
elif [ "$cmd" = "buildlog" -o "$cmd" = "buildinfo" -o "$cmd" = "bl" ]; then
|
elif [ "$cmd" = "buildlog" -o "$cmd" = "buildinfo" ]; then
|
||||||
_osc_cmd_buildlog
|
_osc_cmd_buildlog
|
||||||
else
|
else
|
||||||
_osc_cmd_do $cmd
|
_osc_cmd_do $cmd
|
||||||
@ -70,21 +57,21 @@ _osc() {
|
|||||||
|
|
||||||
_osc_cmd_getbinaries() {
|
_osc_cmd_getbinaries() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:PROJECT:( `echo $OSC_PROJECTS` )' \
|
'1:PROJECT:(PROJECT)' \
|
||||||
'2:PACKAGE:(PACKAGE)' \
|
'2:PACKAGE:(PACKAGE)' \
|
||||||
'3:REPOSITORY:( `echo $OSC_BUILD_TARGETS` )' \
|
'3:REPOSITORY:( openSUSE_10.2 openSUSE_10.3 openSUSE_11.0 openSUSE_11.1 openSUSE_Factory SUSE_SLE-11_GA )' \
|
||||||
'4:ARCHITECTURE:(i586 x86_64)'
|
'4:ARCHITECTURE:(i586 x86_64)'
|
||||||
}
|
}
|
||||||
|
|
||||||
_osc_cmd_checkout() {
|
_osc_cmd_checkout() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:PROJECT:( `echo $OSC_PROJECTS` )' \
|
'1:PROJECT:( openSUSE:Factory openSUSE:11.1 openSUSE:11.0 openSUSE:10.3 )' \
|
||||||
'2:PACKAGE:(PACKAGE)'
|
'2:PACKAGE:(PACKAGE)'
|
||||||
}
|
}
|
||||||
|
|
||||||
_osc_cmd_buildlog() {
|
_osc_cmd_buildlog() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'1:REPOSITORY:( `echo $OSC_BUILD_TARGETS` )' \
|
'1:REPOSITORY:( openSUSE_10.2 openSUSE_10.3 openSUSE_11.0 openSUSE_11.1 openSUSE_Factory SUSE_SLE-11_GA )' \
|
||||||
'2:ARCHITECTURE:(i586 x86_64)'
|
'2:ARCHITECTURE:(i586 x86_64)'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Mar 9 11:50:17 CET 2010 - hmacht@suse.de
|
|
||||||
|
|
||||||
- update completion for _osc:
|
|
||||||
- add new products openSUSE 11.2 and openSUSE 11.3
|
|
||||||
- add possibility to extend the list of projects and build
|
|
||||||
targets with user defined variables
|
|
||||||
$ZSH_OSC_BUILD_TARGETS_EXTRA and $ZSH_OSC_PROJECTS_EXTRA
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 2 18:14:17 UTC 2009 - coolo@novell.com
|
Wed Dec 2 18:14:17 UTC 2009 - coolo@novell.com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user