blob: 6a6102a612a14ba91b0009d7f19e81a3c1b9aa3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!$$SHELL$$
# abomination module:rvs
name='rvs'
ver='0.5.10'
usage='COMMAND [OPTIONS]'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
RVSDIR='$$libdir$$'
source "$RVSDIR/lib/stdio"
source "$RVSDIR/lib/rvsdb"
com=$1;
case "$com" in
-d) echo "$RVSDIR";;
'') error 'please specify a command';;
*)
if [ -f "$RVSDIR/$com" ]; then
export TMPDIR="$repo/tmp"
$RVSDIR/$@
else
error "unrecognized command \`$com'"
fi
:;;
esac
#args=`getopt -n "$name" -o "${sopt}" -l "${lopt}" -- "$@"`
#if [ $? == 0 ]; then
# set -- $args
# while [ $# -gt 0 ]; do
# case "$1" in
# -V | --version) mode='version';;
# -h | -H | -\? | --help) mode='help';;
#
# -v | --verbose) volume='-v';;
# -q | --quiet) volume='-q';;
#
# --) shift; break;;
# esac
# shift;
# done
#else
# error
#fi
|