r36293 - in /packages/scilab/tags/5.2.1-5: ./ bash_completion.d/ bash_completion.d/scilab changelog control patches/full_support.diff scilab-cli.install
sylvestre at users.alioth.debian.org
sylvestre at users.alioth.debian.org
Mon Mar 22 14:20:44 UTC 2010
Author: sylvestre
Date: Mon Mar 22 14:20:43 2010
New Revision: 36293
URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=36293
Log:
tag of version 5.2.1-5
Added:
packages/scilab/tags/5.2.1-5/
- copied from r36281, packages/scilab/trunk/debian/
packages/scilab/tags/5.2.1-5/bash_completion.d/
packages/scilab/tags/5.2.1-5/bash_completion.d/scilab
packages/scilab/tags/5.2.1-5/changelog
- copied unchanged from r36292, packages/scilab/trunk/debian/changelog
packages/scilab/tags/5.2.1-5/control
- copied unchanged from r36292, packages/scilab/trunk/debian/control
packages/scilab/tags/5.2.1-5/patches/full_support.diff
- copied unchanged from r36292, packages/scilab/trunk/debian/patches/full_support.diff
Modified:
packages/scilab/tags/5.2.1-5/scilab-cli.install
Added: packages/scilab/tags/5.2.1-5/bash_completion.d/scilab
URL: http://svn.debian.org/wsvn/debian-science/packages/scilab/tags/5.2.1-5/bash_completion.d/scilab?rev=36293&op=file
==============================================================================
--- packages/scilab/tags/5.2.1-5/bash_completion.d/scilab (added)
+++ packages/scilab/tags/5.2.1-5/bash_completion.d/scilab Mon Mar 22 14:20:43 2010
@@ -1,0 +1,56 @@
+# Scilab completion
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) DIGITEO - 2010 - Sylvestre Ledru
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+
+_scilab()
+{
+ local cur prev options
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ # List all options. Note that
+ options='-ns -nb -nw -nwni -nogui -debug -debug-kdbg -d -display -profiling -profiling-visu -l -mem -version -e -f -nouserstartup -a -mem -h --help'
+
+ # Loop on the arguments to manage conflicting options
+ for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
+ #exclude some mutually exclusive options
+ [[ ${COMP_WORDS[i]} == '-nwni' ]] && options=${options/-nw}
+ [[ ${COMP_WORDS[i]} == '-nw' ]] && options=${options/-nwni}
+ [[ ${COMP_WORDS[i]} == '-e' ]] && options=${options/-f}
+ done
+
+ case "$1" in
+ *scilab-cli*)
+ # Option -nw is not available
+ options=${options/-nw}
+ ;;
+ esac
+
+ case $prev in
+ -f)
+ _filedir '@(sci|sce|SCI|SCE)'
+ return 0
+ ;;
+ -e|-l|-d|-display|-mem)
+ cur=${cur#[\"\']}
+ eqext='='
+ ;;
+
+ *)
+ COMPREPLY=( $( compgen -W "$options" | grep "^$cur" ) )
+ ;;
+ esac
+
+ return 0
+}
+complete -F _scilab $filenames scilab
+complete -F _scilab $filenames scilab-cli
+complete -F _scilab $filenames scilab-adv-cli
+
+
Modified: packages/scilab/tags/5.2.1-5/scilab-cli.install
URL: http://svn.debian.org/wsvn/debian-science/packages/scilab/tags/5.2.1-5/scilab-cli.install?rev=36293&op=diff
==============================================================================
--- packages/scilab/tags/5.2.1-5/scilab-cli.install (original)
+++ packages/scilab/tags/5.2.1-5/scilab-cli.install Mon Mar 22 14:20:43 2010
@@ -1,1 +1,2 @@
debian/tmp/usr/bin/scilab-cli
+debian/bash_completion.d/scilab etc/bash_completion.d/
More information about the debian-science-commits
mailing list