From 3c5d1b0ff208eadfdb9543e0da2d6149644bab03 Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 10 Feb 2003 20:40:36 +0000 Subject: cvs more flexible now; ZRLE encoding only when HAVE_ZRLE defined --- cvs_update_anonymously | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'cvs_update_anonymously') diff --git a/cvs_update_anonymously b/cvs_update_anonymously index 9bdd325..bbe3c77 100644 --- a/cvs_update_anonymously +++ b/cvs_update_anonymously @@ -1,9 +1,13 @@ -if [ a"$1" = adiff -o a"$1" = aexport ]; then - cmd="$1" - shift -else - cmd=update -fi +#!/bin/bash + +case "$1" in +#cvs --help-commands 2>&1 | sed "s/[ ][ ]*/ /g" | cut -d " " -f 2 +add|admin|annotate|checkout|commit|diff|edit|editors|export|history|import|\ +init|log|login|logout|pserver|rdiff|release|remove|rtag|server|status|\ +tag|unedit|update|watch|watchers) + cmd="$1"; shift;; +*) cmd=update;; +esac cvs -z3 -d :pserver:anonymous@cvs.libvncserver.sf.net:/cvsroot/libvncserver $cmd "$@" -- cgit v1.2.3