From 005eafcf1b24baad4944804029a538a88ef4d09f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 19 Jun 2019 07:39:08 +0000 Subject: [PATCH] purge-stale-projects.sh: Handle btools and dspider shared btools and dspider shared have been moved to git. This commit makes purge-stale-projects.sh remove the CVS debris and links. Needs to be fetched before it can work, so make pull will have to run twice in the projects dir. To be removed after all work trees are in sync. Signed-off-by: Jan Lindemann --- scripts/purge-stale-projects.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/purge-stale-projects.sh b/scripts/purge-stale-projects.sh index 5dea1492..08bfc549 100644 --- a/scripts/purge-stale-projects.sh +++ b/scripts/purge-stale-projects.sh @@ -90,6 +90,16 @@ for p in $purged; do sed -i "/D\/$p\/\/\/\// d" CVS/Entries done +if [ -d dspc/src/CVS ]; then + for i in shared; do + sed -i "/D\/$i\/\/\/\// d" dspc/src/CVS/Entries + done +fi + +for i in dspider-btools dspider-shared; do + [ -L "$i" ] && rm $i +done + for p in $local_git_proj; do [ -L $p ] && continue [ -d $p ] || continue