=================================================================== RCS file: /cvs/openbsd/update_openbsd/release.sh,v retrieving revision 1.33 retrieving revision 1.35 diff -u -r1.33 -r1.35 --- openbsd/update_openbsd/release.sh 2010/11/01 23:39:44 1.33 +++ openbsd/update_openbsd/release.sh 2014/11/08 20:32:55 1.35 @@ -1,5 +1,5 @@ #!/bin/sh -# $AFresh1: release.sh,v 1.32 2010/02/24 21:58:18 andrew Exp $ +# $AFresh1: release.sh,v 1.34 2012/05/27 20:48:56 andrew Exp $ # # Copyright (c) 2002, 2008 Steven Roberts # @@ -53,9 +53,11 @@ echo "---------- Update sources ----------" local _d for _d in /usr/src "${XSRCDIR}" "${PORTSPATH}"; do - if [ -d $_d ]; then - echo [$_d] cvs update -r$TAG -Pd - cd $_d && cvs update -r$TAG -Pd || exit 255 + if [ -d $_d -a -e $_d/CVS ]; then + R="-r$TAG" + [ "$TAG" = "HEAD" ] && R="-A" + echo [$_d] cvs update $R -Pd + cd $_d && cvs update $R -Pd || exit 255 fi done }