#!/bin/bash

git init
for dir in `find . | grep 'CVS/Entries$' | sed -e 's/CVS\/Entries//g'`
do
    for file in `cat "$dir/CVS/Entries" | grep '^/' | cut --delimiter=/ -f2`
    do
        git add $dir$file
    done
done