From be71ccec7ce4ac608ecd68ec29c15219280d8d28 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 13 Jan 2010 16:22:57 +0000 Subject: - move the separator so it's just displayed for files with diffs to review, specifically it's now not printed for every auto-installed file, giving a much more compact output. ok ajacoutot@ - skip the blank line before 'Comparison complete' suggested by ajacoutot. --- usr.sbin/sysmerge/sysmerge.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh index a4c0f7e18a2..20a0dc56210 100644 --- a/usr.sbin/sysmerge/sysmerge.sh +++ b/usr.sbin/sysmerge/sysmerge.sh @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: sysmerge.sh,v 1.55 2009/12/18 15:33:02 ajacoutot Exp $ +# $OpenBSD: sysmerge.sh,v 1.56 2010/01/13 16:22:56 sthen Exp $ # # Copyright (c) 1998-2003 Douglas Barton # Copyright (c) 2008, 2009 Antoine Jacoutot @@ -389,9 +389,6 @@ diff_loop() { unset FORCE_UPG while [ "${HANDLE_COMPFILE}" = "v" -o "${HANDLE_COMPFILE}" = "todo" ]; do - if [ "${HANDLE_COMPFILE}" = "v" ]; then - echo "\n========================================================================\n" - fi if [ -f "${DESTDIR}${COMPFILE#.}" -a -f "${COMPFILE}" -a -z "${IS_LINK}" ]; then if [ -z "${DIFFMODE}" ]; then # automatically install files if current != new and current = old @@ -413,6 +410,7 @@ diff_loop() { fi if [ "${HANDLE_COMPFILE}" = "v" ]; then ( + echo "\n========================================================================\n" echo "===> Displaying differences between ${COMPFILE} and installed version:" echo "" diff -u "${DESTDIR}${COMPFILE#.}" "${COMPFILE}" @@ -571,7 +569,7 @@ do_compare() { fi done - echo "\n===> Comparison complete" + echo "===> Comparison complete" } -- cgit v1.2.3