Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall PR toolchain/51457 -- use sort correctly



details:   https://anonhg.NetBSD.org/src/rev/548cbbd2b606
branches:  trunk
changeset: 347543:548cbbd2b606
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Sep 02 05:38:44 2016 +0000

description:
PR toolchain/51457 -- use sort correctly

diffstat:

 usr.sbin/postinstall/postinstall |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 8d09d7c79d19 -r 548cbbd2b606 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Fri Sep 02 04:49:48 2016 +0000
+++ b/usr.sbin/postinstall/postinstall  Fri Sep 02 05:38:44 2016 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.203 2016/08/20 11:24:13 christos Exp $
+# $NetBSD: postinstall,v 1.204 2016/09/02 05:38:44 kre Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -648,7 +648,7 @@
 
        ( cd "${DEST_DIR}${dir}" && ls -1d [0-9]*[0-9]/. ) \
        | ${GREP} -v '[^0-9./]' \
-       | sort -t. -r -k1n -k2n -k3n \
+       | sort -t. -r -k1,1n -k2,2n -k3,3n \
        | tail -n +2 \
        | while read subdir ; do
                subdir="${subdir%/.}"



Home | Main Index | Thread Index | Old Index