* misc/morituri-uninstalled:
The binary name is rip, so add an option to override. Fixes #46.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2011-05-21 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* morituri/rip/image.py:
|
* morituri/rip/image.py:
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ BASEDIR=`cd $MISCDIR/.. && pwd`
|
|||||||
# if this script is called "...-head" then version will be "head"
|
# if this script is called "...-head" then version will be "head"
|
||||||
PROJECT=`basename $self | sed s/-.*//g`
|
PROJECT=`basename $self | sed s/-.*//g`
|
||||||
VERSION=`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=
|
options=
|
||||||
|
|
||||||
@@ -45,7 +48,7 @@ then
|
|||||||
then
|
then
|
||||||
cat $HOME/.bashrc > $tmp
|
cat $HOME/.bashrc > $tmp
|
||||||
fi
|
fi
|
||||||
cat $BASEDIR/etc/bash_completion.d/$PROJECT >> $tmp
|
cat $BASEDIR/etc/bash_completion.d/$COMMAND >> $tmp
|
||||||
SHELL_OPTIONS="--init-file $tmp"
|
SHELL_OPTIONS="--init-file $tmp"
|
||||||
options="(with bash completion)"
|
options="(with bash completion)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user