[Bug #20566] Mention out-of-range argument cases in `String#<<`
[ruby.git] / wasm / wasm-opt
blob3ae21b82062a379c354455332c1e3d9eede8d710
1 #!/bin/sh
2 # A fake wasm-opt, which does nothing at all
3 # See also: tool/wasm-clangw
5 set -e
6 input=
7 output=
8 while [ $# -ne 0 ]; do
9 case "$1" in
10 -o)
11 shift
12 output=$1
14 -*)
15 # ignore other options
18 input=$1
20 esac
21 shift
22 done
24 if [ -z "$input" ]; then
25 echo "missing input binary"
26 exit 1
29 if [ -z "$output" ]; then
30 echo "missing output binary"
31 exit 1
34 if [ "$input" != "$output" ]; then
35 cp "$input" "$output"