[Python-apps-commits] r9474 - in packages/termsaver/trunk/debian (7 files)

brunobraga-guest at users.alioth.debian.org brunobraga-guest at users.alioth.debian.org
Fri Mar 15 13:02:02 UTC 2013


    Date: Friday, March 15, 2013 @ 13:02:01
  Author: brunobraga-guest
Revision: 9474

Changes for 0.2 version (includes bash_completion).

Added:
  packages/termsaver/trunk/debian/bash_completion/
  packages/termsaver/trunk/debian/bash_completion/termsaver
  packages/termsaver/trunk/debian/install
Modified:
  packages/termsaver/trunk/debian/changelog
  packages/termsaver/trunk/debian/control
  packages/termsaver/trunk/debian/copyright
  packages/termsaver/trunk/debian/rules

Added: packages/termsaver/trunk/debian/bash_completion/termsaver
===================================================================
--- packages/termsaver/trunk/debian/bash_completion/termsaver	                        (rev 0)
+++ packages/termsaver/trunk/debian/bash_completion/termsaver	2013-03-15 13:02:01 UTC (rev 9474)
@@ -0,0 +1,73 @@
+##############################################################################
+#
+# file:     termsaver
+#
+# Purpose:  Bash auto-complete functionality for Termsaver.
+#
+# Note:     This file is part of Termsaver application, and should not be used
+#           or executed separately.
+#
+###############################################################################
+#
+# Copyright 2012 Termsaver
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+###############################################################################
+
+have termsaver && _termsaver()
+{
+    local cur prev opts plugin_opts
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+    opts="sysmon matrix asciiartfarts rssfeed urlfetcher quotes4all jokes4all clock randtxt rfc programmer"
+    
+    # For plugins adding new screens, you can append to the below area
+    # with a line such as:
+    #
+    #   plugin_opts=$plugin_opts" plugin-screen-1 ... plugin-screen-N"
+    #
+    # To patch this section, use sed:
+    # sed -e 's:plugin_opts=$plugin_opts:plugin_opts=$plugin_opts" plugin-screen-1 ... plugin-screen-N":'
+    #
+    plugin_opts=
+    # Plugin Appending: BEGIN
+
+    plugin_opts=$plugin_opts
+    
+    # Plugin Appending: END
+
+    # avoid repeating screens once one has been already selected
+#    if [ `echo "$opts $plugin_opts" | grep -e "$prev" | wc -l` -eq 1 ]; then
+#        return 0
+#    fi
+    if [ "$prev" == "-p" -o "$prev" == "--path" ]; then
+        _filedir
+        return 0
+    fi
+
+    # do not let options reappear once is it not direct previous
+    if [ ! "${COMP_WORDS[1]}" == "$cur" -a ! "${COMP_WORDS[1]}" == "" -a `echo "$opts $plugin_opts" | grep -e "${COMP_WORDS[1]}" | wc -l` -eq 1 ]; then
+        return 0
+    fi
+
+    COMPREPLY=( $( compgen -W "${opts}" -- "${cur}" ) )
+    if [[ ${#COMPREPLY[@]} == 1 && ${COMPREPLY[0]} != "--"*"=" ]] ; then
+        # If there's only one option, without =, then allow a space
+        compopt +o nospace
+    fi
+    return 0
+} &&
+complete -o nospace -F _termsaver termsaver
+
+

Modified: packages/termsaver/trunk/debian/changelog
===================================================================
--- packages/termsaver/trunk/debian/changelog	2013-03-10 13:33:05 UTC (rev 9473)
+++ packages/termsaver/trunk/debian/changelog	2013-03-15 13:02:01 UTC (rev 9474)
@@ -1,3 +1,14 @@
+termsaver (0.2-1) unstable; urgency=low
+
+  * Fixed syntax for python 2.5 support.
+  * Fixed small char bug on clock screen.
+  * Fixed issue for longer words in random text screen.
+  * Removed HTML tags from RSS feeds screen.
+  * Other improvements in the code (screen geometry, etc). 
+  * added sysmon screen, and deprecated dot screen.
+
+ -- Bruno Braga <bruno.braga at gmail.com>  Tue, 15 Mar 2012 22:08:22 +1000
+
 termsaver (0.1.1-1) unstable; urgency=low
 
   * Packaging work for initial inclusion in Debian. (Closes: #668618)

Modified: packages/termsaver/trunk/debian/control
===================================================================
--- packages/termsaver/trunk/debian/control	2013-03-10 13:33:05 UTC (rev 9473)
+++ packages/termsaver/trunk/debian/control	2013-03-15 13:02:01 UTC (rev 9474)
@@ -3,7 +3,8 @@
 Priority: optional
 Maintainer: Bruno Braga <bruno.braga at gmail.com>
 Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: python, debhelper (>= 7.4.3)
+Build-Depends: python  (>= 2.5), debhelper (>= 7.4.3)
+X-Python-Version: >= 2.5
 Standards-Version: 3.9.3
 Vcs-Svn: svn://svn.debian.org/python-apps/packages/termsaver/trunk
 Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/termsaver

Modified: packages/termsaver/trunk/debian/copyright
===================================================================
--- packages/termsaver/trunk/debian/copyright	2013-03-10 13:33:05 UTC (rev 9473)
+++ packages/termsaver/trunk/debian/copyright	2013-03-15 13:02:01 UTC (rev 9474)
@@ -3,6 +3,10 @@
 
 Upstream Author: Bruno Braga <bruno.braga at gmail.com>
 
+Contributor(s):
+    Shelby Jueden <shelbyjueden at gmail.com>
+
+
 Copyright:
     <Copyright (c) 2012, Bruno Braga>
 

Added: packages/termsaver/trunk/debian/install
===================================================================
--- packages/termsaver/trunk/debian/install	                        (rev 0)
+++ packages/termsaver/trunk/debian/install	2013-03-15 13:02:01 UTC (rev 9474)
@@ -0,0 +1 @@
+debian/bash_completion/termsaver   etc/bash_completion.d/
\ No newline at end of file

Modified: packages/termsaver/trunk/debian/rules
===================================================================
--- packages/termsaver/trunk/debian/rules	2013-03-10 13:33:05 UTC (rev 9473)
+++ packages/termsaver/trunk/debian/rules	2013-03-15 13:02:01 UTC (rev 9474)
@@ -5,5 +5,5 @@
 	dh_auto_install -- --install-lib=/usr/share/termsaver --install-script=/usr/share/termsaver
 
 %:
-	dh $@ --with=python2
+	dh $@ --with=python2  --with=bash_completion 
 




More information about the Python-apps-commits mailing list