aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGerald Pfeifer <pfeifer@dbai.tuwien.ac.at>1999-12-18 15:34:56 +0100
committerGerald Pfeifer <gerald@gcc.gnu.org>1999-12-18 14:34:56 +0000
commit05e1739fcf801f145ae480d694b8d97c4cc8acdd (patch)
tree8069066298154899135a393ba6f78dc85a1cc0e6 /contrib
parent193a94fa39d200c60e1a740aff155801d6970c6a (diff)
downloadgcc-05e1739fcf801f145ae480d694b8d97c4cc8acdd.zip
gcc-05e1739fcf801f145ae480d694b8d97c4cc8acdd.tar.gz
gcc-05e1739fcf801f145ae480d694b8d97c4cc8acdd.tar.bz2
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
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 af3c168..e442332 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 4ce1352..d264bbf 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