From 9a23c9f512f04ef3dcbb715e2dccb7a9b8b3036a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 24 Oct 2009 02:29:05 -0400 Subject: managing the whole thing with GIT now --- .files/usr/bin/rvs | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 .files/usr/bin/rvs (limited to '.files/usr') diff --git a/.files/usr/bin/rvs b/.files/usr/bin/rvs new file mode 100755 index 0000000..f8f31c6 --- /dev/null +++ b/.files/usr/bin/rvs @@ -0,0 +1,50 @@ +#!/bin/bash +# 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 . + +RVSDIR='/etc/abomination/modules/rvs' +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 + -- cgit v1.2.3-2-g168b