summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mergemaster
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-12-19 01:30:45 +0000
committerdougb <dougb@FreeBSD.org>2009-12-19 01:30:45 +0000
commit9a1619a0ebb435ac116023983bbfc64abb14d0ac (patch)
treee4f33920680376eb7c56ca21c76522141d6b3420 /usr.sbin/mergemaster
parent23a0015214ef4ecddeb88ba99f54f16d6cc216f9 (diff)
downloadFreeBSD-src-9a1619a0ebb435ac116023983bbfc64abb14d0ac.zip
FreeBSD-src-9a1619a0ebb435ac116023983bbfc64abb14d0ac.tar.gz
In the places where find is used that the user may see the results,
first pipe it to sort so that order of processing will be deterministic and like things will be grouped together.
Diffstat (limited to 'usr.sbin/mergemaster')
-rwxr-xr-xusr.sbin/mergemaster/mergemaster.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mergemaster/mergemaster.sh b/usr.sbin/mergemaster/mergemaster.sh
index 7f7df5c..08fab3f 100755
--- a/usr.sbin/mergemaster/mergemaster.sh
+++ b/usr.sbin/mergemaster/mergemaster.sh
@@ -974,7 +974,7 @@ fi
# change to something else in a newer version. So we need to explicitly
# test for this, and warn the user if what we find does not match.
#
-for COMPFILE in `find .` ; do
+for COMPFILE in `find . | sort` ; do
if [ -e "${DESTDIR}${COMPFILE#.}" ]; then
INSTALLED_TYPE=`stat -f '%HT' ${DESTDIR}${COMPFILE#.}`
else
@@ -1021,7 +1021,7 @@ for COMPFILE in `find .` ; do
fi
done
-for COMPFILE in `find . -type f`; do
+for COMPFILE in `find . -type f | sort`; do
# First, check to see if the file exists in DESTDIR. If not, the
# diff_loop function knows how to handle it.
@@ -1124,7 +1124,7 @@ echo ''
TEST_FOR_FILES=`find ${TEMPROOT} -type f -size +0 2>/dev/null`
if [ -n "${TEST_FOR_FILES}" ]; then
echo "*** Files that remain for you to merge by hand:"
- find "${TEMPROOT}" -type f -size +0
+ find "${TEMPROOT}" -type f -size +0 | sort
echo ''
fi
OpenPOWER on IntegriCloud