#!/bin/bash if [ -z "$1" ] then echo "no name of dop calc" exit fi ssh root@192.168.1.4 "cd /mnt/dop/repositories/git; git --bare init $2.git; chown -R apache: $2.git; cp ./dcch01.git/category ./$2.git; echo '$3' > ./$2.git/description" git svn clone http://feser@192.168.1.4/repos/chromos/dopcalc/$1 --authors-file=users.txt --no-metadata cd $1 git push http://feser@192.168.1.4/git/$2.git --all