From d364e13e7e0967cb654c8ff0b9fdc8b3bf7dfa71 Mon Sep 17 00:00:00 2001 From: Tim Yamin Date: Thu, 6 Apr 2006 23:10:12 +0000 Subject: Add very brief draft of "Contributing to This Document". The DevBook XML will obviously need to be expained in more detail... git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/devmanual/trunk@31 176d3534-300d-0410-8db8-84e73ed771c3 --- tasks-reference/completion/text.xml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'tasks-reference') diff --git a/tasks-reference/completion/text.xml b/tasks-reference/completion/text.xml index 7290060..dec64ac 100644 --- a/tasks-reference/completion/text.xml +++ b/tasks-reference/completion/text.xml @@ -360,9 +360,11 @@ Lines 1-12 are pretty much the same as in the previous section. 15 - If ${prev} is equal to -X|--package-names, call _pkgname (a function - defined by gentoo-bashcomp that completes on package names - it sets - ${COMPREPLY}, so we don't worry about that here). + If ${prev} is equal to -X + or --package-names, call _pkgname (a function + defined by gentoo-bashcomp that completes on package + names - it sets ${COMPREPLY}, so we don't worry about + that here). @@ -370,9 +372,10 @@ Lines 1-12 are pretty much the same as in the previous section. 18 - If ${prev} is equal to --soname, generate a list of all shared libs - in /lib and /usr/lib*. Pass that list to compgen to generate a list - of possible completions that match ${cur}. + If ${prev} is equal to --soname, generate a list + of all shared libs in /lib and /usr/lib*. Pass + that list to compgen to generate a list of possible + completions that match ${cur}. @@ -381,7 +384,7 @@ Lines 1-12 are pretty much the same as in the previous section. Obviously we cannot complete on any regexp's so if ${prev} is equal - to --soname-regexp, do nothing. + to --soname-regexp, do nothing. @@ -391,7 +394,7 @@ Lines 1-12 are pretty much the same as in the previous section. For anything else (any options not specified in the case statement above OR any argument to one of the options specified in the case statement) - perform the tests. Since --package-names can take multiple package + perform the tests. Since --package-names can take multiple package names, we want to continue to complete on package names until another recognized option is encountered (ie. is ${prev}). @@ -401,8 +404,8 @@ Lines 1-12 are pretty much the same as in the previous section. 30 - Since _pkgname sets ${COMPREPLY} and we want to add to that list, - we have to use the COMPREPLY=(${COMPREPLY[@] ... ) construct. + Since _pkgname sets ${COMPREPLY} and we want to add to that list, + we have to use the COMPREPLY=(${COMPREPLY[@] ... ) construct. @@ -410,7 +413,7 @@ Lines 1-12 are pretty much the same as in the previous section. 37 - Tell bash to use _revdep_rebuild to generate all possible completions + Tell bash to use _revdep_rebuild to generate all possible completions for revdep-rebuild. -- cgit v1.2.3-18-g5258