summaryrefslogtreecommitdiff
path: root/contrib
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
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')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/newcvsroot5
2 files changed, 10 insertions, 0 deletions
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 <pfeifer@dbai.tuwien.ac.at>
+
+ * 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 <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