copy project1/ to project1_cp/
remove hidden files, other crap from project1
in e.g. /home/XXX/svnrep:
svnadmin create project1
svn import /path/to/project1 file:///home/XXX/svnrep/project1/trunk -m "Initial import"
rm -rf /path/to/project1
svn co file:///home/XXX/svnrep/project1/trunk /path/to/project1
verify that project1 builds and works, then remove project1_cp