#!/bin/sh
-# Upload NEW Git Project to master.
+# 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"
SRC=$1
P=$2
DESC="$3"
rm -fr import_project
mkdir import_project
cd import_project
- git-cvsimport -A ../import.names -v $P
+ git-cvsimport -u -A ../import.names -v $P
cd ..
git clone --bare import_project ${P}.git
else
fi
touch ${P}.git/git-daemon-export-ok
echo $DESC > ${P}.git/description
-scp -r ${P}.git git.indexdata.com:/home/git/pub