Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 64 lines (60 sloc) 2.14 kb
#!/bin/bash
############################################################
# Copyright 2001 by Kyle Sallee #
############################################################
# lvis is front-end to lin to activate voyeurism in a #
# separate xterm if possible. #
############################################################
process_parameters() {
while [ -n "$1" ]; do
if echo "" $1 | grep -q "^ -"; then
case $1 in
--from) export SOURCE_CACHE="$2"; shift 2 ;;
--url) export BASE_URL="$2"; shift 2 ;;
-n|--nofix) NO_lget="$1"; NO_LVU="$1"; shift 1 ;;
--silent) NO_lget="$1"; NO_LVU="$1"; shift 1 ;;
--deps) NO_lget="$1"; shift 1 ;;
-f|--fix) NO_lget="$1"; shift 1 ;;
--help) HELP="$1"; shift 1 ;;
-s) NO_lget="$1"; shift 1 ;;
*) shift 1 ;;
esac
else shift
fi
done
}
strip_parameters() {
while [ -n "$1" ]; do
if echo "" $1 | grep -q "^ -"; then
case $1 in
--from) shift 2 ;;
--url) shift 2 ;;
*) shift 1 ;;
esac
else echo $1; shift
fi
done
}
process_parameters $*
MODULES=`strip_parameters $*`
if [ -z "$*" ] ||
[ -n "$HELP" ]; then
lin; exit 1
fi
if [ -n "$DISPLAY" ]; then
if [ -z "$NO_LVU" ]; then
xterm -bg black \
-fg white \
$XTERM_OPTIONS \
-T "lvu voyeur 5 $MODULES" \
-e /bin/sh -c "lvu voyeur 5 $MODULES" &
fi
if [ -z "$NO_lget" ]; then
xterm -bg black \
-fg white \
$XTERM_OPTIONS \
-T "lget $MODULES" \
-e /bin/sh -c "lget $MODULES" &
fi
fi
lin $@
Jump to Line
Something went wrong with that request. Please try again.