Source-Changes-HG archive

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

[src/netbsd-1-5]: src/distrib/sets Pullup 1.6 [fvdl]:



details:   https://anonhg.NetBSD.org/src/rev/055530dc4916
branches:  netbsd-1-5
changeset: 490043:055530dc4916
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Nov 01 02:25:06 2000 +0000

description:
Pullup 1.6 [fvdl]:
Sort obsolete file lists in reverse order, so that subdirectories come
before their parent dirs. Avoids "directory not empty" problems when
removing directories.

diffstat:

 distrib/sets/makeobsolete |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 7a98af90a0af -r 055530dc4916 distrib/sets/makeobsolete
--- a/distrib/sets/makeobsolete Wed Nov 01 02:24:49 2000 +0000
+++ b/distrib/sets/makeobsolete Wed Nov 01 02:25:06 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: makeobsolete,v 1.2.4.3 2000/11/01 02:05:37 tv Exp $
+# $NetBSD: makeobsolete,v 1.2.4.4 2000/11/01 02:25:06 tv Exp $
 #
 # Print out the obsolete files for a set
 # Usage: makeobsolete [-b] [-x] [-a arch] [-m machine] [-s setsdir] \
@@ -80,9 +80,9 @@
        fi
        if [ -f $setd/lists/$setname/obsolete.${machine} ]; then
                awk -- '{print $1}' $setd/lists/$setname/obsolete.${machine}
-       fi) | egrep -v '^#' | sort -u > $file
+       fi) | egrep -v '^#' | sort -ru > $file
        if [ ! -s $file ] ; then
                rm $file
        fi
 
-done | egrep -v '^#' | sort -u
+done | egrep -v '^#' | sort -ru



Home | Main Index | Thread Index | Old Index