Source-Changes-HG archive

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

[src/pkgviews]: src/usr.sbin/pkg_install/view Use "$sortprog" instead of "sor...



details:   https://anonhg.NetBSD.org/src/rev/ba6e9d9a3795
branches:  pkgviews
changeset: 534214:ba6e9d9a3795
user:      jlam <jlam%NetBSD.org@localhost>
date:      Sun Jul 13 20:38:55 2003 +0000

description:
Use "$sortprog" instead of "sort" in the same spirit as why they other
programs are invoked via "*prog" variables -- easier to customize.

diffstat:

 usr.sbin/pkg_install/view/linkfarm.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 6004eaa42327 -r ba6e9d9a3795 usr.sbin/pkg_install/view/linkfarm.sh
--- a/usr.sbin/pkg_install/view/linkfarm.sh     Sun Jul 13 12:48:07 2003 +0000
+++ b/usr.sbin/pkg_install/view/linkfarm.sh     Sun Jul 13 20:38:55 2003 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: linkfarm.sh,v 1.1.2.3 2003/07/13 12:25:46 jlam Exp $
+# $NetBSD: linkfarm.sh,v 1.1.2.4 2003/07/13 20:38:55 jlam Exp $
 
 #
 # Copyright (c) 2002 Alistair G. Crooks.  All rights reserved.
@@ -42,6 +42,7 @@
 rmprog=/bin/rm
 rmdirprog=/bin/rmdir
 sedprog=/usr/bin/sed
+sortprog=/usr/bin/sort
 
 usage() {
        echo 'Usage: linkfarm [options] package'
@@ -155,7 +156,7 @@
                        $doit $rmprog $target/$f ;;
                esac
        done
-       for d in `$findprog . -type d -print | sort -r`; do
+       for d in `$findprog . -type d -print | $sortprog -r`; do
                if [ $verbose -gt 0 ]; then
                        echo "$rmdirprog $target/$d"
                fi



Home | Main Index | Thread Index | Old Index