[SCM] morituri/master: * misc/morituri-uninstalled: The binary name is rip, so add an option to override. Fixes #46.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:23 UTC 2014


The following commit has been merged in the master branch:
commit 738a2edb0bafde1ca419db30e09b2f433b84822f
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sat May 21 16:19:12 2011 +0000

    	* misc/morituri-uninstalled:
    	  The binary name is rip, so add an option to override.
    	  Fixes #46.

diff --git a/ChangeLog b/ChangeLog
index d1c3fae..f1fdad1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-21  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* misc/morituri-uninstalled:
+	  The binary name is rip, so add an option to override.
+	  Fixes #46.
+
+2011-05-21  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* morituri/rip/image.py:
 	  Document image subcommand.  Fixes #61.
 
diff --git a/misc/morituri-uninstalled b/misc/morituri-uninstalled
index e3a0b77..d5036bc 100755
--- a/misc/morituri-uninstalled
+++ b/misc/morituri-uninstalled
@@ -25,6 +25,9 @@ BASEDIR=`cd $MISCDIR/.. && pwd`
 # if this script is called "...-head" then version will be "head"
 PROJECT=`basename $self | sed s/-.*//g`
 VERSION=`basename $self | sed s/.*-//g`
+COMMAND=$PROJECT
+# override if the command line name to be completed is different
+COMMAND=rip
 
 options=
 
@@ -45,7 +48,7 @@ then
     then
       cat $HOME/.bashrc > $tmp
     fi
-    cat $BASEDIR/etc/bash_completion.d/$PROJECT >> $tmp
+    cat $BASEDIR/etc/bash_completion.d/$COMMAND >> $tmp
     SHELL_OPTIONS="--init-file $tmp"
     options="(with bash completion)"
   fi

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list