rpms/bash-completion/devel bash-completion-mock, 1.5, 1.6 bash-completion-plague-client, 1.2, 1.3

Ville Skyttä scop at fedoraproject.org
Sat Mar 14 21:10:07 UTC 2009


Author: scop

Update of /cvs/pkgs/rpms/bash-completion/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18797

Modified Files:
	bash-completion-mock bash-completion-plague-client 
Log Message:
Apply upstream indentation settings.


Index: bash-completion-mock
===================================================================
RCS file: /cvs/pkgs/rpms/bash-completion/devel/bash-completion-mock,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bash-completion-mock	6 Jan 2009 18:44:43 -0000	1.5
+++ bash-completion-mock	14 Mar 2009 21:09:35 -0000	1.6
@@ -1,69 +1,73 @@
-# bash completion for mock                                           -*- sh -*-
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# bash completion for mock
 
 # TODO: --copyin, --copyout
 
 _mock()
 {
-    local cur prev plugins cfgdir
+	local cur prev plugins cfgdir
 
-    COMPREPLY=()
-    cur=`_get_cword`
-    prev=${COMP_WORDS[COMP_CWORD-1]}
-    plugins='ccache yum_cache root_cache bind_mount'
-    cfgdir=/etc/mock
-
-    count=0
-    for i in "${COMP_WORDS[@]}" ; do
-        [ $count -eq $COMP_CWORD ] && break
-        if [[ "$i" == --configdir ]] ; then
-            cfgdir="${COMP_WORDS[((count+1))]}"
-        elif [[ "$i" == --configdir=* ]] ; then
-            cfgdir=${i/*=/}
-        fi
-        count=$((++count))
-    done
-
-    case $prev in
-        -@(-root|r))
-            COMPREPLY=( $( command ls $cfgdir | \
-                sed -ne 's/^\('$cur'.*\)\.cfg$/\1/p') )
-            return 0
-            ;;
-        -@(-help|h))
-            return 0
-            ;;
-    esac
-
-    # --name=value style option
-    if [[ "$cur" == *=* ]] ; then
-        prev=${cur/=*/}
-        cur=${cur/*=/}
-        case $prev in 
-            --@(config|result)dir)
-                _filedir -d
-                return 0
-                ;;
-            --@(en|dis)able-plugin)
-                COMPREPLY=( $( compgen -W "$plugins" -- $cur ) )
-                return 0
-                ;;
-            --@(arch|target|define|with|without|uniqueext|rpmbuild_timeout|cwd))
-                return 0
-                ;;
-        esac
-    fi
-
-    if [[ "$cur" == -* ]] ; then
-        COMPREPLY=( $( compgen -W '--version -h --help --rebuild --shell \
-            --chroot --clean --init --installdeps --install --update \
-            --orphanskill -r --root= --offline --no-clean --cleanup-after \
-            --no-cleanup-after --arch= --target= -D --define= --with= \
-            --without= --resultdir= --uniqueext= --configdir= \
-            --rpmbuild_timeout --unpriv --cwd= -v --verbose -q --quiet \
-            --trace --enable-plugin= --disable-plugin= --print-root-path' \
-            -- $cur ) )
-    else
-        _filedir '?(no)src.rpm'
-    fi
+	COMPREPLY=()
+	cur=`_get_cword`
+	prev=${COMP_WORDS[COMP_CWORD-1]}
+	plugins='ccache yum_cache root_cache bind_mount'
+	cfgdir=/etc/mock
+
+	count=0
+	for i in "${COMP_WORDS[@]}" ; do
+		[ $count -eq $COMP_CWORD ] && break
+		if [[ "$i" == --configdir ]] ; then
+			cfgdir="${COMP_WORDS[((count+1))]}"
+		elif [[ "$i" == --configdir=* ]] ; then
+			cfgdir=${i/*=/}
+		fi
+		count=$((++count))
+	done
+
+	case $prev in
+		-@(-root|r))
+			COMPREPLY=( $( command ls $cfgdir | \
+				sed -ne 's/^\('$cur'.*\)\.cfg$/\1/p') )
+			return 0
+			;;
+		-@(-help|h))
+			return 0
+			;;
+	esac
+
+	# --name=value style option
+	if [[ "$cur" == *=* ]] ; then
+		prev=${cur/=*/}
+		cur=${cur/*=/}
+		case $prev in 
+			--@(config|result)dir)
+				_filedir -d
+				return 0
+				;;
+			--@(en|dis)able-plugin)
+				COMPREPLY=( $( compgen -W "$plugins" -- $cur ) )
+				return 0
+				;;
+			--@(arch|target|define|with|without|uniqueext|rpmbuild_timeout|cwd))
+				return 0
+				;;
+		esac
+	fi
+
+	if [[ "$cur" == -* ]] ; then
+		COMPREPLY=( $( compgen -W '--version -h --help --rebuild \
+			--shell --chroot --clean --init --installdeps \
+			--install --update --orphanskill -r --root= --offline \
+			--no-clean --cleanup-after --no-cleanup-after --arch= \
+			--target= -D --define= --with= --without= \
+			--resultdir= --uniqueext= --configdir= \
+			--rpmbuild_timeout --unpriv --cwd= -v --verbose -q \
+			--quiet --trace --enable-plugin= --disable-plugin= \
+			--print-root-path' -- $cur ) )
+	else
+		_filedir '?(no)src.rpm'
+	fi
 }
 complete -F _mock $filenames mock


Index: bash-completion-plague-client
===================================================================
RCS file: /cvs/pkgs/rpms/bash-completion/devel/bash-completion-plague-client,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- bash-completion-plague-client	6 Jan 2009 18:44:43 -0000	1.2
+++ bash-completion-plague-client	14 Mar 2009 21:09:35 -0000	1.3
@@ -1,16 +1,20 @@
-# bash completion for plague-client                                  -*- sh -*-
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+
+# bash completion for plague-client
 
 _plague_client()
 {
-    local cur
+	local cur
 
-    COMPREPLY=()
-    cur=`_get_cword`
+	COMPREPLY=()
+	cur=`_get_cword`
 
-    [ $COMP_CWORD = 1 ] && \
-    COMPREPLY=( $( compgen -W 'build detail finish help is_paused kill list \
-        list_builders pause requeue unpause update_builders' -- $cur ) )
+	[ $COMP_CWORD = 1 ] && \
+		COMPREPLY=( $( compgen -W 'build detail finish help is_paused \
+				kill list list_builders pause requeue unpause \
+				update_builders' -- $cur ) )
 
-    return 0
+	return 0
 }
 complete -F _plague_client plague-client




More information about the fedora-extras-commits mailing list