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
This commit is contained in:
Gerald Pfeifer 1999-12-18 15:34:56 +01:00 committed by Gerald Pfeifer
parent 193a94fa39
commit 05e1739fcf
2 changed files with 10 additions and 0 deletions

View 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.

View File

@ -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