svn commit: r301118 - head/Tools/scripts

Beat Gaetzi beat at FreeBSD.org
Wed Jul 18 19:52:34 UTC 2012


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 at 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}
 	;;
 	*)



More information about the svn-ports-all mailing list