aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2012-07-19 03:52:33 +0800
committerbeat <beat@FreeBSD.org>2012-07-19 03:52:33 +0800
commitec7f1e629489b9873b88ccc15affbabbbeb0ad12 (patch)
tree98a3d8ddbc4eec4b1b6a4716dfb0ddc36ea44b01 /Tools/scripts
parent8990a00db595aacba4163253130f462d6a9d1f9a (diff)
downloadfreebsd-ports-graphics-ec7f1e629489b9873b88ccc15affbabbbeb0ad12.tar.gz
freebsd-ports-graphics-ec7f1e629489b9873b88ccc15affbabbbeb0ad12.tar.zst
freebsd-ports-graphics-ec7f1e629489b9873b88ccc15affbabbbeb0ad12.zip
- Remove duplicate execution of svn info [1]
- Add description what the script actually does Submitted by: gahr [1]
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/psvn17
1 files changed, 13 insertions, 4 deletions
diff --git a/Tools/scripts/psvn b/Tools/scripts/psvn
index 3cc2a30333d..9dbc12b99d6 100755
--- a/Tools/scripts/psvn
+++ b/Tools/scripts/psvn
@@ -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}
;;
*)