made the recustomize macro work even with a missing generated folder.
[feisty_meow.git] / scripts / rev_control / update_these.sh
1 #!/bin/bash
2 # a simple script for updating a set of folders on a usb stick from subversion or git.  currently
3 # just runs with no parameters and expects to get all archives from wherever the files originally
4 # came from.
5 for i in * ; do
6   if [ -d "$i" ]; then
7     pushd $i
8     # only update if we see a repository living there.
9     if [ -d ".svn" ]; then
10       svn update .
11     elif [ -d ".git" ]; then
12       git pull .
13     fi
14     popd
15   fi
16 done