From b2fc10b903a3fa3c3c8902ac60d289d3a2b916a3 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 12 Jun 2015 19:43:39 +0000 Subject: [PATCH] projects-dir.mk: Add targets check-conv and git-conv-% Signed-off-by: Jan Lindemann --- make/projects-dir.mk | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/make/projects-dir.mk b/make/projects-dir.mk index ee866cbf..595bc11e 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -50,5 +50,18 @@ status: $(PGIT) status git-conv-%: - mv $* old/ - sed -i "/$*/ d" CVS/Entries + [ -e $*/.git ] || { \ + mv $* old/ ;\ + if PROJECTS="$*" make clone; then \ + sed -i "/^D\/$*\// d" CVS/Entries ;\ + else \ + mv old/$* . ;\ + fi \ + } + +check-conv: + for p in `ssh git.jannet.de /opt/ytools/bin/git-srv-admin.sh -u jan -j list-personal-projects`; do \ + make git-conv-$$p ;\ + done + +