Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/sets Refactor; move generate_* function calls in sin...



details:   https://anonhg.NetBSD.org/src/rev/62ad49263bfb
branches:  trunk
changeset: 749836:62ad49263bfb
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Dec 10 16:12:00 2009 +0000

description:
Refactor; move generate_* function calls in single place.

diffstat:

 distrib/sets/checkflist |  18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diffs (55 lines):

diff -r b945652896ca -r 62ad49263bfb distrib/sets/checkflist
--- a/distrib/sets/checkflist   Thu Dec 10 16:09:13 2009 +0000
+++ b/distrib/sets/checkflist   Thu Dec 10 16:12:00 2009 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh --
 #
-#      $NetBSD: checkflist,v 1.37 2009/12/10 16:09:13 uebayasi Exp $
+#      $NetBSD: checkflist,v 1.38 2009/12/10 16:12:00 uebayasi Exp $
 #
 # Verify output of makeflist against contents of ${DESTDIR} and ${metalog}.
 
@@ -136,10 +136,6 @@
        ${COMM} -13 "${SDIR}/files" "${SDIR}/mlist" > "${SDIR}/extra"
 }
 
-generate_files
-generate_flist
-generate_mlist
-
 #
 # compare DESTDIR with METALOG, and report on differences.
 #
@@ -147,9 +143,6 @@
 #
 compare_metalog()
 {
-    generate_missing
-    generate_extra
-
     # Handle case insensitive filesystems
     mv -f "${SDIR}/extra" "${SDIR}/extra.all"
     while read f; do
@@ -203,9 +196,6 @@
 #
 compare_destdir()
 {
-generate_missing
-generate_extra
-
 # Handle case insensitive filesystems
 mv -f "${SDIR}/missing" "${SDIR}/missing.all"
 while read f; do
@@ -258,6 +248,12 @@
 fi
 }
 
+generate_files
+generate_flist
+generate_mlist
+generate_missing
+generate_extra
+
 compare_destdir
 
 exit 0         # cleanup will exit with ${es}



Home | Main Index | Thread Index | Old Index