Date: Wed, 18 Jul 2012 19:52:33 +0000 (UTC) From: Beat Gaetzi <beat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r301118 - head/Tools/scripts Message-ID: <201207181952.q6IJqXfq005045@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: beat Date: Wed Jul 18 19:52:33 2012 New Revision: 301118 URL: http://svn.freebsd.org/changeset/ports/301118 Log: - Remove duplicate execution of svn info [1] - Add description what the script actually does Submitted by: gahr [1] Modified: head/Tools/scripts/psvn Modified: head/Tools/scripts/psvn ============================================================================== --- head/Tools/scripts/psvn Wed Jul 18 19:36:31 2012 (r301117) +++ head/Tools/scripts/psvn Wed Jul 18 19:52:33 2012 (r301118) @@ -30,6 +30,14 @@ # MAINTAINER= beat@FreeBSD.org # +# +# The psvn wrapper checkes from replaced, conflicting, missing or +# untracked files. When committing it adds the needed Subversion +# properties and removes unneeded ones. +# There is also adds a check subcommand which just executes the +# checks. +# + PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:${PATH} export PATH @@ -44,7 +52,7 @@ fi checkstatus () { _error=0 - _files=`${SVN} status "${@}" | awk '{ print $NF }'` + _files="${@}" for _file in `echo ${_files}` do @@ -77,7 +85,7 @@ checkstatus () { } setprop () { - _files=`${SVN} status "${@}" | awk '{ print $NF }'` + _files="${@}" for _file in `echo ${_files}` do @@ -126,8 +134,9 @@ case "${1}" in esac done shift `expr $OPTIND - 1` - checkstatus "${@}" - setprop "${@}" + files=`${SVN} status "${@}" | awk '{ print $NF }'` + checkstatus "${files}" + setprop "${files}" ${SVN} ${opts} ;; *)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207181952.q6IJqXfq005045>