Depend on inkscape
[git-tools-moved-to-github.git] / id-cvs-to-git.sh
index 4d07723..761b57f 100755 (executable)
@@ -1,30 +1,39 @@
 #!/bin/sh
 # id-cvs-to-git.sh: Creates new bare Git Project from CVS
 #
-# Usage:
-#  id-cvs-to-git.sh source project description
-# source: is a GIT project source or 'CVS'
-# project: is the GIT project name (destination) and project source (If CVS)
-# description: description for the project
-# 
-# Convert YAZ from CVS to Git and upload:
-#  id-cvs-to-git.sh CVS yaz "Yet another Z39.50 toolkit"
-# Upload new project 'newproject' from repository ../newproject
-#  ic-cvs-to-git.sh ../newproject newproject "My new project"
+usage() {
+       cat  <<EOF
+Usage:
+id-cvs-to-git.sh source project description
+
+ source: is a GIT project source or 'CVS'
+ project: is the GIT project name (destination) and project source (If CVS)
+ description: description for the project
+ Convert YAZ from CVS to Git
+  id-cvs-to-git.sh CVS yaz "Yet another Z39.50 toolkit"
+
+ Make bare new Git project from existing Git repo ../newproject
+  id-cvs-to-git.sh ../newproject newproject "My new project"
+EOF
+}
+
 SRC=$1
 P=$2
 DESC="$3"
 
 if test -z "$SRC"; then
-       echo "Missing Source (CVS=get from CVS)"
+       usage
        exit 1
 fi
 if test -z "$P"; then
-       echo "Missing Project"
+       echo "Error: Missing Project"
+       usage
        exit 1
 fi
 if test -z "$DESC"; then
-       echo "Missing Description"
+       echo "Error: Missing Description"
+       usage
        exit 1
 fi
 if test "$SRC" = "CVS"; then