diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2010-01-13 16:22:57 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2010-01-13 16:22:57 +0000 |
commit | be71ccec7ce4ac608ecd68ec29c15219280d8d28 (patch) | |
tree | 8b58bfd3654f7961cf844205515bbe8652a65175 /usr.sbin/sysmerge/sysmerge.sh | |
parent | c246e27272f7fc5fc694e317f329c743c9f60b39 (diff) |
- 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.
Diffstat (limited to 'usr.sbin/sysmerge/sysmerge.sh')
-rw-r--r-- | usr.sbin/sysmerge/sysmerge.sh | 8 |
1 files 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 <DougB@FreeBSD.org> # Copyright (c) 2008, 2009 Antoine Jacoutot <ajacoutot@openbsd.org> @@ -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" } |