[Rivet-svn] r2373 - trunk/data

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Sat Apr 3 15:20:03 BST 2010


Author: buckley
Date: Sat Apr  3 15:20:02 2010
New Revision: 2373

Log:
Remove (probably non-functioning) completion for non-existent rivetgun program

Modified:
   trunk/data/rivet-completion

Modified: trunk/data/rivet-completion
==============================================================================
--- trunk/data/rivet-completion	Fri Apr  2 14:30:01 2010	(r2372)
+++ trunk/data/rivet-completion	Sat Apr  3 15:20:02 2010	(r2373)
@@ -45,50 +45,4 @@
 }
 
 
-function _rivetgun() {
-	local cur prev commands options command
-	COMPREPLY=()
-	#cur=`_get_cword`
-    cur="${COMP_WORDS[COMP_CWORD]}"
-    prev="${COMP_WORDS[COMP_CWORD-1]}"
-
-    opts="--help --histotype --histoname --analysis --all_analyses --loglevel"
-    opts="$opts --nocolor --ineventfile --outeventfile --norivet"
-    opts="$opts --generator --seed --mom1 --mom2 --beam1 --beam2"
-    opts="$opts -g -i -o -R -a -A -l -h -H -p -P -n -s"
-    if [[ ${cur} == -* ]] ; then
-        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
-        if test -n "$COMPREPLY"; then
-            return 0
-        fi
-    fi
-
-    if test -x "$(which rivet)"; then
-        anas=$(rivet --list-analyses)
-        if [[ ${prev} == "-a" || ${prev} == "--analysis" ]]; then
-            COMPREPLY=( $(compgen -W "$anas" -- ${cur}) )
-            return 0
-        fi
-    fi
-
-    if test -x "$(which agile-runmc)"; then
-        gens=$(agile-runmc --list-gens)
-        if [[ ${prev} == "-g" || ${prev} == "--generator" ]]; then
-            COMPREPLY=( $(compgen -W "$gens" -- ${cur}) )
-            return 0
-        fi
-    fi
-
-    files=$(ls)
-    COMPREPLY=( $(compgen -W "$opts $files" -- ${cur}) )
-    if test -n "$COMPREPLY"; then
-        return 0
-    fi
-
-    return 0
-}
-
-
-default="-o default"
-complete -F _rivet $default rivet
-complete -F _rivetgun $default rivetgun
+complete -F _rivet -o default rivet


More information about the Rivet-svn mailing list