]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
Find git directories in setup.sh automatically.
[config/dotfiles.git] / setup.sh
1 #!/bin/sh
2
3 # Runs setup.sh in all configuration directories. Must be run in the main
4 # configuration directory.
5
6
7 # Projects which use git.
8 projects="browser lftp mail music os shell vcs vim"
9
10 # Run setup.sh in each project.
11 for project in `find . -name .git -type d`; do
12     # Skip this directory to prevent an infinite loop.
13     [ "$project" = "./.git" ] && continue
14
15     [ -d "$project" ] && (echo "running setup.sh in '$project'";
16                           cd "$project/.."; ./setup.sh > /dev/null)
17 done