OSDN Git Service

* newcvsroot: Add check on the number of command-line arguments.
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Dec 1999 14:34:56 +0000 (14:34 +0000)
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Dec 1999 14:34:56 +0000 (14:34 +0000)
Add usage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31012 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/newcvsroot

index af3c168..e442332 100644 (file)
@@ -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.
index 4ce1352..d264bbf 100755 (executable)
@@ -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