webrtc/third_party/libvpx/obj_int_extract.sh
stefan@webrtc.org c3115837ed Changes to upgrade libvpx to head of master.
Also aligns libvpx build system in WebRTC with Chromium's.

BUG=

Review URL: https://webrtc-codereview.appspot.com/708008

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2623 4adac7df-926f-26a2-2b94-8c16560cd09d
2012-08-17 06:57:58 +00:00

31 lines
693 B
Bash
Executable File

#!/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"