[caffe-contrib] 15/15: d/script: import new bash completion file

Zhou Mo cdluminate-guest at moszumanska.debian.org
Sun Oct 2 14:47:56 UTC 2016


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

cdluminate-guest pushed a commit to branch master
in repository caffe-contrib.

commit 6c0116c373c84684ed797a1e76aa7a9087c98874
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Sun Oct 2 14:47:40 2016 +0000

    d/script: import new bash completion file
---
 debian/changelog    | 1 +
 debian/script/caffe | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b83c852..04adb04 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,7 @@ caffe-contrib (1.0.0~rc3+20160930-ga7f950b-1) UNRELEASED; urgency=medium
   * Disable -pedantic compiler option to reduce build log size.
   * Synchronize packaging with src:caffe (1.0.0~rc3+20160930-ga7f950b-1).
   * Add --list-missing option to dh_install.
+  * Import updated bash completion script d/script/caffe from src:caffe.
 
  -- Zhou Mo <cdluminate at gmail.com>  Wed, 10 Aug 2016 14:08:06 +0000
 
diff --git a/debian/script/caffe b/debian/script/caffe
index 4f62922..8a0b22a 100644
--- a/debian/script/caffe
+++ b/debian/script/caffe
@@ -3,6 +3,7 @@
 # License: BSD-2-Clause
 # Originally appeard at https://github.com/BVLC/caffe/issues/3149
 
+# Updated for caffe (1.0.0~rc3+20160715-g42cd785)
 _caffe()
 {
   local cur prev words cword
@@ -13,7 +14,7 @@ _caffe()
   local solverstates='@(solverstate)'
   local caffefiles='@(prototxt|caffemodel|solverstate)'
 
-  local flags='-gpu -iterations -model -snapshot -solver -weights -sighup_effect -sigint_effect'
+  local flags='-gpu -iterations -model -snapshot -solver -weights -sighup_effect -sigint_effect -level -stage -phase'
   
   if [[ $cword -eq 1 ]]; then
     COMPREPLY=( $( compgen -W 'train test time device_query' -- "$cur" ) )
@@ -33,7 +34,7 @@ _caffe()
   fi
 
   case $prev in
-  -gpu|-iterations|-version)
+  -gpu|-iterations|-version|-level|-stage)
     return 0
     ;;
   -solver|-model)
@@ -52,6 +53,10 @@ _caffe()
     COMPREPLY=( $( compgen -W 'snapshot stop none' -- "$cur") )
     return 0
     ;;
+  -phase)
+    COMPREPLY=( $( compgen -W 'TRAIN TEST' -- "$cur") )
+    return 0
+    ;;
   *)
     COMPREPLY=( $( compgen -W "$flags" -- "$cur") )
     return 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe-contrib.git



More information about the debian-science-commits mailing list