]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/isa-l/tools/yasm-filter.sh
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / isa-l / tools / yasm-filter.sh
1 #/bin/sh
2
3 # Filter out unnecessary options added by automake
4
5 while [ -n "$*" ]; do
6 case "$1" in
7 -f | -o | -I | -i | -D )
8 # Supported options with arg
9 options="$options $1 $2"
10 shift
11 shift
12 ;;
13 -I* | -i* | --prefix* )
14 # Supported options without arg
15 options="$options $1"
16 shift
17 ;;
18 -D* ) # For defines we need to remove spaces
19 case "$1" in
20 *' '* ) ;;
21 *) options="$options $1" ;;
22 esac
23 shift
24 ;;
25 #-blah )
26 # Unsupported options with args - none known
27 -* )
28 # Unsupported options with no args
29 shift
30 ;;
31 * )
32 args="$args $1"
33 shift
34 ;;
35 esac
36 done
37
38 yasm $options $args