X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=dfef30539e122bf5234972e3eee8967263f8f939;hb=9571f95bc667454fab054ba67477d90ff323d87c;hp=98c910064a03178666d3762a1cc336c9637e5a1f;hpb=57f91f13e3284a37c0f5aa88de451f1618fdd11e;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 98c9100..dfef305 100755 --- a/setup.sh +++ b/setup.sh @@ -4,11 +4,14 @@ # configuration directory. -# Projects which use git. -projects="browser lftp mail music os shell vcs vim" +for path in `find . -name setup.sh -type f`; do + # Skip this directory to prevent an infinite loop. + [ "$path" = "./setup.sh" ] && continue + # Skip non executable setup.sh files as an easy way to deactivate one. + [ ! -x "$path" ] && continue -# Run setup.sh in each project. -for project in $projects; do - [ -d "$project" ] && (echo "running setup.sh in '$project'"; - cd "$project"; ./setup.sh > /dev/null) + project=`echo "$path" | sed 's|/setup.sh$||'` + + echo "running setup.sh in '$project'" + ( cd "$project"; ./setup.sh > /dev/null ) done