Add script to add remotes from README

This commit is contained in:
Nico Schottelius 2020-07-22 16:46:14 +02:00
parent d0f2c8040a
commit bff795f6f0

9
add-remotes.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
# Nico Schottelius, 2020-07-22
grep '^* \[' README.md | sed 's/.*\[\(.*\)].*: \(git@.*\)/\1 \2/' | (
while read name repo; do
name_small=$(echo $name | tr 'A-Z' 'a-z')
git remote add $name_small $repo
done
)