summaryrefslogtreecommitdiff
path: root/Tools/scripts/rmport
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2007-02-19 07:24:36 +0000
committerVasil Dimov <vd@FreeBSD.org>2007-02-19 07:24:36 +0000
commiteed3828ab17e309a802e1aadc69eacf92b8c5f48 (patch)
tree185f7d4b16f576954258e719135bb9f4e5ddfbb1 /Tools/scripts/rmport
parentAdd p5-List-Rotation-Cycle 1.004, cycle through a list of values. (diff)
* Run cvs update just before cvs commit to sync a potentially changed files
in the repository. Suggested by: gabor@ * Fix typo in the output
Notes
Notes: svn path=/head/; revision=185501
Diffstat (limited to 'Tools/scripts/rmport')
-rwxr-xr-xTools/scripts/rmport7
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index 0ea2af3c83bd..e57cd271f0c0 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -206,7 +206,7 @@ check_dep()
echo " * these are false positives" >&2
echo " * you want to break something" >&2
echo " * your ${PORTSDIR} is out of date, consider setting PORTSDIR in environment" >&2
- echo " point to a newer instance of the ports tree" >&2
+ echo " to point to a newer instance of the ports tree" >&2
echo "or you can hit \`n' to repeat the check" >&2
answer=`ask "ignore the above issues"`
if [ "${answer}" = "y" ] ; then
@@ -410,9 +410,12 @@ diff()
echo ${diffout}
}
-# ask for confirmation and commit
+# update, ask for confirmation and commit
commit()
{
+ log "running cvs update"
+ ${PCVS} up CVSROOT/modules ports 2>&1 |${PAGER:-less}
+
answer=`ask "do you want to commit?"`
if [ "${answer}" = "y" ] ; then