From 9d055a33fc17bd9a8889d64d6da75a006e3a7f35 Mon Sep 17 00:00:00 2001 From: dsl Date: Fri, 22 Aug 2003 19:08:47 +0000 Subject: [PATCH] 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. --- distrib/sets/maketars | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/distrib/sets/maketars b/distrib/sets/maketars index 3e0ffa210ab9..0cdec349f0c7 100755 --- a/distrib/sets/maketars +++ b/distrib/sets/maketars @@ -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 @@ for setname in $lists; do 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 \