From 05e1739fcf801f145ae480d694b8d97c4cc8acdd Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 18 Dec 1999 15:34:56 +0100 Subject: [PATCH] newcvsroot: Add check on the number of command-line arguments. * newcvsroot: Add check on the number of command-line arguments. Add usage. From-SVN: r31012 --- contrib/ChangeLog | 5 +++++ contrib/newcvsroot | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index af3c1689b55..e4423324e7c 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +1999-12-18 Gerald Pfeifer + + * newcvsroot: Add check on the number of command-line arguments. + Add usage. + Sun Nov 28 00:41:44 1999 William Bader (william@nscs.fast.net) * gcc_update: Allow patches compressed by bzip2. diff --git a/contrib/newcvsroot b/contrib/newcvsroot index 4ce13526f48..d264bbf7de3 100755 --- a/contrib/newcvsroot +++ b/contrib/newcvsroot @@ -6,6 +6,11 @@ # Usage: newcvsroot +if [ $# != 3 ]; then + echo "usage: `basename $0` " + exit 1 +fi + root=$1; shift module=$1; shift topdir=$1; shift