X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fupdate_these.sh;h=cdd0119a4219db835229e19a611e8ba0f0a8c8f6;hb=5caefd248674b4e0f927abfc7a28f2b298d90e9f;hp=afd79578dce3b235ce7daa3af3cd5c8bfd653faf;hpb=9fd22b6e5c4bb1aa1b3975da8d4d436664a0a03d;p=feisty_meow.git diff --git a/scripts/rev_control/update_these.sh b/scripts/rev_control/update_these.sh index afd79578..cdd0119a 100644 --- a/scripts/rev_control/update_these.sh +++ b/scripts/rev_control/update_these.sh @@ -1,7 +1,16 @@ #!/bin/bash -# a simple script for updating a set of folders on a usb stick from subversion or git. currently +# a simple script for updating a set of folders on a usb stick from subversion or git. +# currently # just runs with no parameters and expects to get all archives from wherever the files originally # came from. + +dir="$1"; shift +if [ -z "$dir" ]; then + dir=. +fi + +pushd "$dir" + for i in * ; do if [ -d "$i" ]; then pushd $i @@ -9,8 +18,14 @@ for i in * ; do if [ -d ".svn" ]; then svn update . elif [ -d ".git" ]; then - git pull . + git pull + elif [ -d "CVS" ]; then + cvs update . fi popd fi done + +popd + +