summaryrefslogtreecommitdiff
path: root/chromium/third_party/libvpx/obj_int_extract.sh
blob: 648790a5d02b846f2b50af65196b67872086623f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash -e
#
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This script is used to run obj_int_extract and output the result to a
# file.
#
# Arguments:
#
# -e - Executable of obj_int_extract.
# -f - ASM format.
# -b - Object binary file.
# -o - Output file.
#

while getopts "e:f:b:o:" flag; do
  if [ "$flag" = "e" ]; then
    bin_file=$OPTARG
  elif [ "$flag" = "f" ]; then
    asm_format=$OPTARG
  elif [ "$flag" = "b" ]; then
    obj_file=$OPTARG
  elif [ "$flag" = "o" ]; then
    out_file=$OPTARG
  fi
done

"$bin_file" "$asm_format" "$obj_file" > "$out_file"