summaryrefslogtreecommitdiff
path: root/src/rvs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/rvs.sh')
-rw-r--r--src/rvs.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rvs.sh b/src/rvs.sh
index 5059dca..4cd8eb5 100644
--- a/src/rvs.sh
+++ b/src/rvs.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs
name='rvs'
-ver='0.5.10'
+ver='0.6.3'
usage='COMMAND [OPTIONS]'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,21 +11,20 @@ usage='COMMAND [OPTIONS]'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-RVSDIR='$$libdir$$'
+export RVSDIR='$$libdir$$'
source "$RVSDIR/lib/stdio"
#source "$RVSDIR/lib/rvsdb"
# START OPTION HANDLING #
com=$1;
-# END OPTION HANDLING #
+# END OPTION HANDLING #
case "$com" in
+ # -d is left for back-compat, should be removed by the end of 0.6.3
-d) echo "$RVSDIR";;
'') error 'no command specified';;
*)
if [ -f "$RVSDIR/$com" ]; then
- export TMPDIR="$repo/tmp"
- #echo "$@" >> $repo/log
- $RVSDIR/$@
+ $SHELL $RVSDIR/$@
else
error "unrecognized command \`$com'"
fi