Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
#!/bin/sh # svnupdate -- update all my SVN projects (or the current directory) # # SUMMARY: If you give this no parameters, # it looks first in the current directory, if that's a SVN directory, # then it acts like svn update # If there are no arguments, # and if the current directory isn't a SVN directory, then # it updates all of the immediate subdirectories of . that are SVN # directories. # If you give it arguments, it updates all of the given directories. # This is useful if you don't want to set SVNROOT on cygwin, where # the script incorrectly checks SVNROOT first before looking # in the directories. # # AUTHOR: Gary T. Leavens [ -n "$echo" ] && set -x USAGE='svnupdate [dir] ...' # no options allowed case "$1" in -*) echo "$USAGE" >&2 exit 2 ;; esac if test $# -eq 0 then if test -d .svn then SVNDIRS='.' else : ${SVNDIRS=`echo */.svn | sed -e 's@/.svn@@g'`} fi else SVNDIRS="$@" fi ret=0 case "$SVNDIRS" in '*') exit $ret ;; esac for d in $SVNDIRS do cd $d && echo $d svn update || ret=1 cd .. done exit $ret