Author: tchemit Date: 2014-10-06 18:16:49 +0200 (Mon, 06 Oct 2014) New Revision: 108 Url: http://forge.codelutin.com/projects/adminsys/repository/revisions/108 Log: refs #5074: Mise en place git (rendre invisible les projets prives) Added: scripts/git-tools/mark_public_git_repositories.sh Added: scripts/git-tools/mark_public_git_repositories.sh =================================================================== --- scripts/git-tools/mark_public_git_repositories.sh (rev 0) +++ scripts/git-tools/mark_public_git_repositories.sh 2014-10-06 16:16:49 UTC (rev 108) @@ -0,0 +1,19 @@ +#!/bin/bash + +FORGE=$1 + +PROJECT_ROOT=/var/lib/git/git-$FORGE + +PROJECT_FILE=$PROJECT_ROOT/.projects_list +rm -rf $PROJECT_FILE + +curl http://forge.$FORGE/projects.json -s -o -|sed -e 's/[{}]/''/g' | awk -v RS=',"' -F: '/^identifier/ {print $2}'|cut -d\" -f 2|while read p; do + + for d in $(ls $PROJECT_ROOT | grep $p | grep .git) ; do + + echo "$d" >> $PROJECT_FILE + + done + +done + Property changes on: scripts/git-tools/mark_public_git_repositories.sh ___________________________________________________________________ Added: svn:executable + *