]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - setup.sh
dfef30539e122bf5234972e3eee8967263f8f939
[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 for path in `find . -name setup.sh -type f`; do
8     # Skip this directory to prevent an infinite loop.
9     [ "$path" = "./setup.sh" ] && continue
10     # Skip non executable setup.sh files as an easy way to deactivate one.
11     [ ! -x "$path" ] && continue
12
13     project=`echo "$path" | sed 's|/setup.sh$||'`
14
15     echo "running setup.sh in '$project'"
16     ( cd "$project"; ./setup.sh > /dev/null )
17 done