summaryrefslogtreecommitdiff
path: root/contrib/newcvsroot
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-18 14:34:56 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-18 14:34:56 +0000
commit2ae5da4f15b68580275324efee3cb3f57c90dab9 (patch)
tree8069066298154899135a393ba6f78dc85a1cc0e6 /contrib/newcvsroot
parente16ce300453c228ae139f72c01fcd26ac8e9d9e6 (diff)
downloadgcc-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-xcontrib/newcvsroot5
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