Changeset 82397 in spip-zone


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

Genérer la liste des nouveaux plugins à syncrhoniser vers Git

Location:
_outils_/svn2git/trunk
Files:
1 added
1 edited

Legend:

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

    r82396 r82397  
    1212
    1313GIT_DIRECTORY="/srv/gitosis/repositories/"
     14
     15SUBGIT_CONF=$SVN_REPOSITORY/conf/subgit.conf
     16SUBGIT_CONF="./cpsubgit.conf"
     17SUBGIT_CONF_APPEND=$(tempfile)
    1418SUBGIT_MODEL="subgit.conf"
    1519
     
    2630    done
    2731done
     32
     33#Définir les projets à injecter dans git
     34for project in ${SVN_PROJECTS_SUBGIT[@]}; do
     35    grep -q "$project" "$SUBGIT_CONF"
     36
     37    if [ "$?" -eq "1" ]; then
     38        echo "$project à ajouter"
     39        sed \
     40            -e "s#%%svn_project%%#$project#g" \
     41            -e "s#%%git_project%%#$project#g" \
     42            -e "s#%%git_directory%%#$GIT_DIRECTORY#g" \
     43        $SUBGIT_MODEL \
     44        >> $SUBGIT_CONF_APPEND
     45    fi
     46done
Note: See TracChangeset for help on using the changeset viewer.