[devscripts] 01/02: scripts/*.bash_completion: Render U+0009 TAB to spaces.

Ben Finney bignose-guest at moszumanska.debian.org
Fri May 13 21:07:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

bignose-guest pushed a commit to branch master
in repository devscripts.

commit be373319687d2291b875a59ea8e98ab055de7c98
Author: Ben Finney <ben at benfinney.id.au>
Date:   Sat May 14 06:47:04 2016 +1000

    scripts/*.bash_completion: Render U+0009 TAB to spaces.
---
 scripts/chdist.bash_completion        |  10 +--
 scripts/dcut.bash_completion          |  52 ++++++-------
 scripts/debchange.bash_completion     |  46 ++++++------
 scripts/debdiff.bash_completion       | 136 +++++++++++++++++-----------------
 scripts/debsign.bash_completion       |  24 +++---
 scripts/plotchangelog.bash_completion |  10 +--
 scripts/uupdate.bash_completion       |  22 +++---
 7 files changed, 150 insertions(+), 150 deletions(-)

diff --git a/scripts/chdist.bash_completion b/scripts/chdist.bash_completion
index 457c949..c270277 100644
--- a/scripts/chdist.bash_completion
+++ b/scripts/chdist.bash_completion
@@ -4,10 +4,10 @@ _chdist ()
   local options='--help -h --data-dir -d --arch -a'
   local commands='create apt-get apt-cache apt-rdepends
            src2bin bin2src
-	   compare-packages compare-bin-packages
-	   compare-versions compare-bin-versions
-	   grep-dctrl-packages grep-dctrl-sources
-	   list'
+       compare-packages compare-bin-packages
+       compare-versions compare-bin-versions
+       grep-dctrl-packages grep-dctrl-sources
+       list'
   # Sync'd with buildd.debian.org on 2016-04-02:
   local archs="all alpha amd64 arm64 armel armhf hppa hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sh4 sparc sparc64 x32"
   local dists=$(ls $HOME/.chdist 2>/dev/null)
@@ -29,7 +29,7 @@ _chdist ()
     ;;
     create|apt-get|apt-cache|apt-rdepends|src2bin|bin2src|compare-packages|compare-bin-packages|compare-versions|compare-bin-versions|grep-dctrl-packages|grep-dctrl-sources)
         COMPREPLY=( $( compgen -W "$dists" -- $cur ) )
-	return 0
+    return 0
   esac
 
   if [[ "$cur" == -* ]]; then
diff --git a/scripts/dcut.bash_completion b/scripts/dcut.bash_completion
index 96d6998..ed0f22e 100644
--- a/scripts/dcut.bash_completion
+++ b/scripts/dcut.bash_completion
@@ -11,32 +11,32 @@ _dcut()
     commands='mv rm cancel'
 
     case $prev in
-	-k | --keyid)
-	    keyid_options=`gpg -K|grep ^sec|cut -d'/' -f2|cut -d' ' -f1`
-	    COMPREPLY=( $( compgen -W "$keyid_options" | grep ^$cur ) )
-	    ;;
-	mv | rm | cancel)
-	    COMPREPLY=( $(
-		    compgen -G "${cur}*.changes"
-		    compgen -G "${cur}*.commands"
-		) )
-	    ;;
-	-*)
-	    COMPREPLY=( $(
-		    compgen -G "${cur}*.changes"
-		    compgen -G "${cur}*.dsc"
-		    compgen -G "${cur}*.commands"
-		) )
-	    ;;
-	*)
-	    COMPREPLY=( $(
-		    compgen -G "${cur}*.changes"
-		    compgen -G "${cur}*.dsc"
-		    compgen -G "${cur}*.commands"
-		    compgen -W "$commands" | grep "^$cur"
-		    compgen -W "$options" | grep "^$cur"
-		) )
-	    ;;
+        -k | --keyid)
+            keyid_options=`gpg -K|grep ^sec|cut -d'/' -f2|cut -d' ' -f1`
+            COMPREPLY=( $( compgen -W "$keyid_options" | grep ^$cur ) )
+            ;;
+        mv | rm | cancel)
+            COMPREPLY=( $(
+                    compgen -G "${cur}*.changes"
+                    compgen -G "${cur}*.commands"
+                ) )
+            ;;
+        -*)
+            COMPREPLY=( $(
+                    compgen -G "${cur}*.changes"
+                    compgen -G "${cur}*.dsc"
+                    compgen -G "${cur}*.commands"
+                ) )
+            ;;
+        *)
+            COMPREPLY=( $(
+                    compgen -G "${cur}*.changes"
+                    compgen -G "${cur}*.dsc"
+                    compgen -G "${cur}*.commands"
+                    compgen -W "$commands" | grep "^$cur"
+                    compgen -W "$options" | grep "^$cur"
+                ) )
+            ;;
     esac
 
     return 0
diff --git a/scripts/debchange.bash_completion b/scripts/debchange.bash_completion
index 97b556b..3073cad 100644
--- a/scripts/debchange.bash_completion
+++ b/scripts/debchange.bash_completion
@@ -42,30 +42,30 @@ _debchange()
     urgency='low medium high critical'
 
     case $prev in
-	--changelog | -c | --news)
-	    COMPREPLY=( $( compgen -G "${cur}*" ) )
-	    ;;
-	--check-dirname-level)
-	    COMPREPLY=( $( compgen -W [0 1 2] ) )
-	    ;;
+        --changelog | -c | --news)
+            COMPREPLY=( $( compgen -G "${cur}*" ) )
+            ;;
+        --check-dirname-level)
+            COMPREPLY=( $( compgen -W [0 1 2] ) )
+            ;;
 #FIXME: we need "querybts --list" option with no verbose output
-#	--closes)
-#	     package=`dpkg-parsechangelog -SSource`
-#	     bugnumber=`querybts --list -b $package|grep ^#|cut -d' ' -f1`
-#	     COMPREPLY=( $( compgen -W "$bugnumber" ) )
-#	    ;;
-	-D | --distribution)
-	    COMPREPLY=( $( compgen -W "$distro" ) )
-	    ;;
-	--newversion | -v | --package | --local | -l | --allow-lower-version)
-	    ;;
-	--release-heuristic)
-	    COMPREPLY=( $( compgen -W 'log changelog' ) )
-	    ;;
-	-u | --urgency)
-	    COMPREPLY=( $( compgen -W "$urgency" ) )
-	    ;;
-	*)
+#       --closes)
+#            package=`dpkg-parsechangelog -SSource`
+#            bugnumber=`querybts --list -b $package|grep ^#|cut -d' ' -f1`
+#            COMPREPLY=( $( compgen -W "$bugnumber" ) )
+#           ;;
+        -D | --distribution)
+            COMPREPLY=( $( compgen -W "$distro" ) )
+            ;;
+        --newversion | -v | --package | --local | -l | --allow-lower-version)
+            ;;
+        --release-heuristic)
+            COMPREPLY=( $( compgen -W 'log changelog' ) )
+            ;;
+        -u | --urgency)
+            COMPREPLY=( $( compgen -W "$urgency" ) )
+            ;;
+        *)
             COMPREPLY=( $(
                     compgen -W "$options" | grep "^$cur"
                 ) )
diff --git a/scripts/debdiff.bash_completion b/scripts/debdiff.bash_completion
index e2f33b5..24b57c2 100644
--- a/scripts/debdiff.bash_completion
+++ b/scripts/debdiff.bash_completion
@@ -3,83 +3,83 @@
 _debdiff()
 {
     local cur prev words cword _options i
-	local _dir=normal
-	local -i _from=-1
-	local -i _to=-1
+    local _dir=normal
+    local -i _from=-1
+    local -i _to=-1
     _init_completion || return
 
     for (( i=1; i<${#words[@]}; i++ )); do
-		if [[ $_dir == @(deb|dsc|changes) ]]; then
-			if (( i == ${#words[@]}-1 )); then
-				break
-			else
-				COMPREPLY=()
-				return 0
-			fi
-		fi
-		if (( ${_from} == -1  && ${_to} == -1 )); then
-			_dir=normal
-		elif (( ${_from} >= 0 && ${_to} == -1 )); then
-			_dir=from
-		elif (( ${_from} >= 0 && ${_to} >= 0 && ${_to} < ${_from} )); then
-			_dir=to
-		else
-			COMPREPLY=( ) 
-			return 0
-		fi
-		if [[ $_dir == normal && ${words[i]} == --from ]]; then
-			_from=0
-			_dir=from
-		elif [[ $_dir == normal && ${words[i]} == *.deb ]]; then
-			_dir=deb
-		elif [[ $_dir == normal && ${words[i]} == *.dsc ]]; then
-			_dir=dsc
-		elif [[ $_dir == normal && ${words[i]} == *.changes ]]; then
-			_dir=changes
-		elif [[ $_dir == from && ${words[i]} == *.deb ]]; then
-			(( ++_from ))
-		elif [[ $_dir == from && ${words[i]} == --to ]]; then
-			_to=0
-			_dir=to
-		elif [[ $_dir = to && ${words[i]} == *.deb ]]; then
-			(( ++_to ))
-		fi
+        if [[ $_dir == @(deb|dsc|changes) ]]; then
+            if (( i == ${#words[@]}-1 )); then
+                break
+            else
+                COMPREPLY=()
+                return 0
+            fi
+        fi
+        if (( ${_from} == -1  && ${_to} == -1 )); then
+            _dir=normal
+        elif (( ${_from} >= 0 && ${_to} == -1 )); then
+            _dir=from
+        elif (( ${_from} >= 0 && ${_to} >= 0 && ${_to} < ${_from} )); then
+            _dir=to
+        else
+            COMPREPLY=( ) 
+            return 0
+        fi
+        if [[ $_dir == normal && ${words[i]} == --from ]]; then
+            _from=0
+            _dir=from
+        elif [[ $_dir == normal && ${words[i]} == *.deb ]]; then
+            _dir=deb
+        elif [[ $_dir == normal && ${words[i]} == *.dsc ]]; then
+            _dir=dsc
+        elif [[ $_dir == normal && ${words[i]} == *.changes ]]; then
+            _dir=changes
+        elif [[ $_dir == from && ${words[i]} == *.deb ]]; then
+            (( ++_from ))
+        elif [[ $_dir == from && ${words[i]} == --to ]]; then
+            _to=0
+            _dir=to
+        elif [[ $_dir = to && ${words[i]} == *.deb ]]; then
+            (( ++_to ))
+        fi
     done
 
-	if [[ $_dir == normal ]]; then
+    if [[ $_dir == normal ]]; then
 
-		if [[ $prev == --debs-dir ]]; then
-			COMPREPLY=$( ( compgen -d -- "$cur" ) )
-		elif [[ $cur == -* ]]; then
-			_options='--from --dirs --nodirs --move --move-regex --nocontrol --control --controlfiles --wdiff-source-control --no-wdiff-source-control --wp --wl --wt --show-moved --noshow-moved --renamed --exclude --diffstat --no-diffstat --auto-ver-sort --no-auto-ver-sort --unpack-tarballs --no-unpack-tarballs --debs-dir --quiet --ignore-space'
-	
-			if [[ $prev == debdiff ]]; then
-				_options+=' --no-conf'
-			fi
-	
-			COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
-		else
-	        declare -a _compreply=( $( compgen -o filenames -G '*.@(deb|dsc|changes)' ) )
-	        COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
-		fi
-	elif [[ $_dir == deb ]]; then
-		declare -a _compreply=( $( compgen -o filenames -G '*.deb' ) )
+        if [[ $prev == --debs-dir ]]; then
+            COMPREPLY=$( ( compgen -d -- "$cur" ) )
+        elif [[ $cur == -* ]]; then
+            _options='--from --dirs --nodirs --move --move-regex --nocontrol --control --controlfiles --wdiff-source-control --no-wdiff-source-control --wp --wl --wt --show-moved --noshow-moved --renamed --exclude --diffstat --no-diffstat --auto-ver-sort --no-auto-ver-sort --unpack-tarballs --no-unpack-tarballs --debs-dir --quiet --ignore-space'
+    
+            if [[ $prev == debdiff ]]; then
+                _options+=' --no-conf'
+            fi
+    
+            COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
+        else
+            declare -a _compreply=( $( compgen -o filenames -G '*.@(deb|dsc|changes)' ) )
+            COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
+        fi
+    elif [[ $_dir == deb ]]; then
+        declare -a _compreply=( $( compgen -o filenames -G '*.deb' ) )
         COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
-	elif [[ $_dir = dsc ]]; then
-		declare -a _compreply=( $( compgen -o filenames -G '*.dsc' ) )
+    elif [[ $_dir = dsc ]]; then
+        declare -a _compreply=( $( compgen -o filenames -G '*.dsc' ) )
         COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
-	elif [[ $_dir = changes ]]; then
-		declare -a _compreply=( $( compgen -o filenames -G '*.changes' ) )
+    elif [[ $_dir = changes ]]; then
+        declare -a _compreply=( $( compgen -o filenames -G '*.changes' ) )
         COMPREPLY=( $( compgen -W "${_compreply[*]}"  -- "$cur" ) )
-	else
-	    _options=$(find . -name '*.deb' | sed -e's!\.\/!!' |  paste -s -d' ')
-		if [[ $_dir == from ]]; then
-			if (( $_from > 0 )); then
-				_options+=' --to'
-			fi
-		fi
-		COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
-	fi
+    else
+        _options=$(find . -name '*.deb' | sed -e's!\.\/!!' |  paste -s -d' ')
+        if [[ $_dir == from ]]; then
+            if (( $_from > 0 )); then
+                _options+=' --to'
+            fi
+        fi
+        COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
+    fi
 
     return 0
 } &&
diff --git a/scripts/debsign.bash_completion b/scripts/debsign.bash_completion
index f405b06..fdb3c1f 100644
--- a/scripts/debsign.bash_completion
+++ b/scripts/debsign.bash_completion
@@ -9,18 +9,18 @@ _debsign()
              --re-sign --no-re-sign --debs-dir --no-conf --noconf'
 
     case $prev in
-	-k)
-	    keyid_options=`gpg -K|grep ^sec|cut -d'/' -f2|cut -d' ' -f1`
-	    COMPREPLY=( $( compgen -W "$keyid_options" | grep ^$cur ) )
-	    ;;
-	*)
-	    COMPREPLY=( $(
-		    compgen -G "${cur}*.changes"
-		    compgen -G "${cur}*.dsc"
-		    compgen -G "${cur}*.commands"
-		    compgen -W "$options" | grep "^$cur"
-		) )
-	    ;;
+        -k)
+            keyid_options=`gpg -K|grep ^sec|cut -d'/' -f2|cut -d' ' -f1`
+            COMPREPLY=( $( compgen -W "$keyid_options" | grep ^$cur ) )
+            ;;
+        *)
+            COMPREPLY=( $(
+                    compgen -G "${cur}*.changes"
+                    compgen -G "${cur}*.dsc"
+                    compgen -G "${cur}*.commands"
+                    compgen -W "$options" | grep "^$cur"
+                ) )
+            ;;
     esac
 
     return 0
diff --git a/scripts/plotchangelog.bash_completion b/scripts/plotchangelog.bash_completion
index b24e860..81fc6c6 100644
--- a/scripts/plotchangelog.bash_completion
+++ b/scripts/plotchangelog.bash_completion
@@ -5,14 +5,14 @@ _plotchangelog()
     local cur prev words cword _options
     _init_completion || return
 
-	_options='--linecount --bugcount --cumulative --no-version --no-maint --urgency --verbose'
+    _options='--linecount --bugcount --cumulative --no-version --no-maint --urgency --verbose'
 
     if [[ $prev == plotchangelog ]]; then
-		_options+=' --no-conf'
-	fi
+        _options+=' --no-conf'
+    fi
 
-	_options+=' '
-	_options+=$(find . -name changelog | sed -e's!\.\/!!' |  paste -s -d' ')
+    _options+=' '
+    _options+=$(find . -name changelog | sed -e's!\.\/!!' |  paste -s -d' ')
 
     COMPREPLY=( $( compgen -W "${_options}" -- "$cur" ) )
 
diff --git a/scripts/uupdate.bash_completion b/scripts/uupdate.bash_completion
index de94988..85f536b 100644
--- a/scripts/uupdate.bash_completion
+++ b/scripts/uupdate.bash_completion
@@ -10,20 +10,20 @@ _uupdate()
              --force-bad-version -b'
 
     case $prev in
-	--pristine | -u)
+        --pristine | -u)
             COMPREPLY=( $(
-	        compgen -G "${cur}*[!debian].tar.gz"
-	        compgen -G "${cur}*[!debian].tar.bz2"
-	        compgen -G "${cur}*[!debian].tar.xz"
-	        compgen -G "${cur}*.tgz"
-	        compgen -G "${cur}*.zip"
-	        compgen -G "${cur}*.lzma" ) )
-	    ;;
+                compgen -G "${cur}*[!debian].tar.gz"
+                compgen -G "${cur}*[!debian].tar.bz2"
+                compgen -G "${cur}*[!debian].tar.xz"
+                compgen -G "${cur}*.tgz"
+                compgen -G "${cur}*.zip"
+                compgen -G "${cur}*.lzma" ) )
+            ;;
         --help | -h | --version)
            ;;
-	*)
-	    COMPREPLY=( $( compgen -W "$options" | grep "^$cur" ) )
-	    ;;
+        *)
+            COMPREPLY=( $( compgen -W "$options" | grep "^$cur" ) )
+            ;;
     esac
 
     return 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list