#!/bin/sh

if test "$1" = -lv
then
	lock="-l$2"
	shift
	shift
elif test "$1" = -l
then
	lock="-l"
	shift
elif test "$1" = -rv
then
	lock="-r$2"
	shift
	shift
elif test "$1" = -r
then
	lock="-r"
	shift
fi

while test "$1" != ""
do
	co $lock $1
	shift
done
