=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ctfconv/ctfstrip,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/ctfconv/ctfstrip 2019/02/18 11:05:43 1.10 --- src/usr.bin/ctfconv/ctfstrip 2019/05/27 09:31:08 1.11 *************** *** 1,6 **** #!/bin/sh # ! # $OpenBSD: ctfstrip,v 1.10 2019/02/18 11:05:43 sunil Exp $ # # Copyright (c) 2017 Martin Pieuchot # --- 1,6 ---- #!/bin/sh # ! # $OpenBSD: ctfstrip,v 1.11 2019/05/27 09:31:08 jca Exp $ # # Copyright (c) 2017 Martin Pieuchot # *************** *** 30,47 **** trap "cleanup" 1 2 3 13 15 ! args=$(getopt So: $*) ! if [ $? -ne 0 ]; then ! usage ! fi ! set -- $args ! while [ $# -ne 0 ]; do ! case "$1" in ! -S) STRIPFLAG=-g; shift;; ! -o) OUTFILE="$2"; shift; shift;; ! --) shift; break;; ! esac done if [ $# -ne 1 ]; then usage --- 30,44 ---- trap "cleanup" 1 2 3 13 15 ! while getopts So: opt; do ! case $opt in ! S) STRIPFLAG=-g;; ! o) OUTFILE="$OPTARG";; ! \?) usage;; ! esac done + + shift $((OPTIND - 1)) if [ $# -ne 1 ]; then usage