Changeset 82396 in spip-zone


Ignore:
Timestamp:
May 15, 2014, 2:11:33 PM (5 years ago)
Author:
cam.lafit@…
Message:

Lister les projets SVN convertibles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _outils_/svn2git/trunk/svn2git_checksvn.sh

    r82395 r82396  
    99SVN_DIRECTORY="/var/svn-repos/spip-zone/"
    1010SVN_ROOTS=('_plugins_' '_outils_');
     11SVN_PROJECTS_SUBGIT=()
    1112
    1213GIT_DIRECTORY="/srv/gitosis/repositories/"
     
    1819    for project in ${project_list}; do
    1920        if [ ${project: -1:1} = "/" ]; then
    20             echo $root/$project
     21            svn ls --depth empty "svn://${SVN_REPOSITORY}/${root}/${project}/trunk" 2>/dev/null 1>/dev/null
     22            if [ "$?"="0" ]; then
     23                SVN_PROJECTS_SUBGIT+=(${root}/${project})
     24            fi
    2125        fi
    2226    done
Note: See TracChangeset for help on using the changeset viewer.