Source-Changes-HG archive

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

[src/trunk]: src/distrib/sets Since the METALOG is updated by every install, ...



details:   https://anonhg.NetBSD.org/src/rev/74b6bec5ee19
branches:  trunk
changeset: 550837:74b6bec5ee19
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri Aug 22 19:08:47 2003 +0000

description:
Since the METALOG is updated by every install, there is no need to
remake the sets if the set files are newer than METALOG.
Useful for running DISTRIBUTION_DONE= nbmake in src/etc in order to
rebuild with new kernels and/or new ramdisk.

diffstat:

 distrib/sets/maketars |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r da1497977077 -r 74b6bec5ee19 distrib/sets/maketars
--- a/distrib/sets/maketars     Fri Aug 22 19:03:03 2003 +0000
+++ b/distrib/sets/maketars     Fri Aug 22 19:08:47 2003 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: maketars,v 1.41 2003/07/03 06:43:02 lukem Exp $
+# $NetBSD: maketars,v 1.42 2003/08/22 19:08:47 dsl Exp $
 #
 # Make release tar files for some or all lists.  Usage:
 # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@@ -161,6 +161,10 @@
        if [ -n "$installdir" ]; then
                echo "Copying set $setname"
        else
+               [ -n "$metalog" -a $tars/$out -nt "$metalog" ] && {
+                       echo "$out is up to date"
+                       continue
+               }
                echo "Creating $out"
        fi
        sh $setd/makeflist -a $machine_arch -m $machine -s $setd $setname \



Home | Main Index | Thread Index | Old Index