Changeset View
Changeset View
Standalone View
Standalone View
bin/ls-all-repos
Show All 24 Lines | fi | ||||
done | done | ||||
# list obsolete repositories | # list obsolete repositories | ||||
find . -mindepth 1 -maxdepth 1 -type d -not -path '*/\.*' | | find . -mindepth 1 -maxdepth 1 -type d -not -path '*/\.*' | | ||||
while read dir ; do | while read dir ; do | ||||
dir=${dir#./} # strip "./" prefix | dir=${dir#./} # strip "./" prefix | ||||
if [ "$dir" == ".git" \ | if [ "$dir" == ".git" \ | ||||
-o "$dir" == "bin" \ | -o "$dir" == "bin" \ | ||||
-o "$dir" == "debian-template" \ | |||||
-o "$dir" == "doc" \ | -o "$dir" == "doc" \ | ||||
-o "$dir" == "docker" \ | -o "$dir" == "docker" \ | ||||
-o "$dir" == "packages" \ | -o "$dir" == "packages" \ | ||||
] ; then | ] ; then | ||||
continue | continue | ||||
fi | fi | ||||
if ! grep -q "^\[${dir}\]" .mrconfig ; then | if ! grep -q "^\[${dir}\]" .mrconfig ; then | ||||
warn "unknown repository '$dir', you might want to remove it" | warn "unknown repository '$dir', you might want to remove it" | ||||
fi | fi | ||||
done | done |