[Bash-completion-commits] [SCM] bash-completion branch, frozen/1.0, updated. 410e78a464153f8ee2a913e93a7e5df80885eadc
Ville Skyttä
ville.skytta at iki.fi
Mon Mar 23 21:02:48 UTC 2009
The following commit has been merged in the frozen/1.0 branch:
commit 410e78a464153f8ee2a913e93a7e5df80885eadc
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Mar 23 23:01:25 2009 +0200
Add rpmbuild --target completion.
diff --git a/CHANGES b/CHANGES
index 3ef768a..3c6774f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -138,6 +138,7 @@ bash-completion (1.0)
* Apply ps2pdf completion to ps2pdf{12,13,14,wr} too.
* Simplify bash_completion.sh, return earlier in non-applicable environments.
* Remove obsolete --buildarch and --buildos rpm(build) completions.
+ * Add rpmbuild --target completion.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing
diff --git a/bash_completion b/bash_completion
index 9a0f0e6..6d4ad35 100644
--- a/bash_completion
+++ b/bash_completion
@@ -2063,6 +2063,11 @@ _rpm()
'%{requirename}\n' | grep "^$cur" ) )
return 0
;;
+ --target)
+ COMPREPLY=( $( compgen -W "$( command rpm --showrc | sed -ne \
+ 's/^\s*compatible\s\+build\s\+archs\s*:\s*\(.*\)/\1/ p' )" -- $cur ) )
+ return 0
+ ;;
esac
case "${COMP_WORDS[1]}" in
diff --git a/debian/changelog b/debian/changelog
index cd57533..635339c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -138,6 +138,7 @@ bash-completion (1:1.0-1) UNRELEASED; urgency=low
* Apply ps2pdf completion to ps2pdf{12,13,14,wr} too.
* Simplify bash_completion.sh, return earlier in non-applicable environments.
* Remove obsolete --buildarch and --buildos rpm(build) completions.
+ * Add rpmbuild --target completion.
[ Freddy Vulto ]
* Restored `_display()' completion for `display' by removing
--
bash-completion
More information about the Bash-completion-commits
mailing list