diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-18 14:34:56 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-12-18 14:34:56 +0000 |
commit | 2ae5da4f15b68580275324efee3cb3f57c90dab9 (patch) | |
tree | 8069066298154899135a393ba6f78dc85a1cc0e6 /contrib/newcvsroot | |
parent | e16ce300453c228ae139f72c01fcd26ac8e9d9e6 (diff) | |
download | gcc-2ae5da4f15b68580275324efee3cb3f57c90dab9.tar.gz |
* newcvsroot: Add check on the number of command-line arguments.
Add usage.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31012 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/newcvsroot')
-rwxr-xr-x | contrib/newcvsroot | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/newcvsroot b/contrib/newcvsroot index 4ce13526f48..d264bbf7de3 100755 --- a/contrib/newcvsroot +++ b/contrib/newcvsroot @@ -6,6 +6,11 @@ # Usage: newcvsroot <newroot> <modulename> <toplevel directory> +if [ $# != 3 ]; then + echo "usage: `basename $0` <newroot> <modulename> <toplevel directory>" + exit 1 +fi + root=$1; shift module=$1; shift topdir=$1; shift |