blob: 8059c01d42ef94f8f1dedf6c468ff7cf8a0db76e [file] [log] [blame]
#!/bin/bash
set -eo pipefail
# Loops through all known Podspec roots, then creates an index.txt in that folder
# with the contents of an ls.
find Specs -mindepth 4 -maxdepth 4 -type d -not -wholename '**/.git/**/*' -print | \
xargs -I {} bash -c 'ls -1 "{}" | grep -v "index.txt" > "{}"/index.txt'
# Loops through all known Podspec folders and pipes their name into a single all_pods.txt
# in the root.
find Specs -mindepth 4 -maxdepth 4 -type d -not -wholename '**/.git/**/*' | \
cut -d / -f 5 | sort > all_pods.txt