Root/usrp/doall

Source at commit 598582c26a877b5135f9b6dbc47a185e3ed9b151 created 12 years 11 months ago.
By Werner Almesberger, atrf-path.c (do_half_sweep, do_sweep): don't duplicate the loop - use a function
1#!/bin/bash -x
2
3usage()
4{
5    echo "usage: $0 [evscan-opt ... --] [plscan-opt ...] 'file-glob'" 1>&2
6    exit 1
7}
8
9
10[ "$1" ] || usage
11evscan_opts=
12opts=
13while [ "$2" ]; do
14    if [ "$1" = -- ]; then
15    evscan_opts=$opts
16    opts=
17    else
18    opts="$opts $1"
19    fi
20    shift
21done
22a=
23for n in $1; do
24    a="$a `basename $n`=<(./evscan $evscan_opts $n)"
25done
26eval ./plscan $opts $a
27

Archive Download this file



interactive