Module Name: othersrc Committed By: ginsbach Date: Wed Aug 30 18:49:32 UTC 2017
Modified Files: othersrc/external/bsd/dust/dist: dust.sh Log Message: Fix option handling so options are actually processed. [approved by agc] To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/dust/dist/dust.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: othersrc/external/bsd/dust/dist/dust.sh diff -u othersrc/external/bsd/dust/dist/dust.sh:1.1.1.1 othersrc/external/bsd/dust/dist/dust.sh:1.2 --- othersrc/external/bsd/dust/dist/dust.sh:1.1.1.1 Wed Apr 2 04:38:22 2014 +++ othersrc/external/bsd/dust/dist/dust.sh Wed Aug 30 18:49:31 2017 @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: dust.sh,v 1.1.1.1 2014/04/02 04:38:22 agc Exp $ +# $NetBSD: dust.sh,v 1.2 2017/08/30 18:49:31 ginsbach Exp $ # Copyright (c) 2013 Alistair Crooks <a...@netbsd.org> # All rights reserved. @@ -34,11 +34,12 @@ revsort="" silent="" while getopts "rs" arg; do case "$arg" in - -r) revsort="-r" ;; - -s) silent="-s" ;; - *) break; + r) revsort="-r" ;; + s) silent="-s" ;; + *) echo "Usage: $(basename $0) [-r] [-s] [file ...]"; exit 1 ;; esac done +shift $(expr $OPTIND - 1) awk=/usr/bin/awk du=/usr/bin/du