webrtc/third_party/libvpx/copy_obj.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

37 lines
626 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 copy a file from several possible locations.
#
# Arguments:
#
# -d - Destination.
# -s - Source file path.
#
while getopts "d:s:" flag; do
if [ "$flag" = "d" ]; then
dest=$OPTARG
elif [ "$flag" = "s" ]; then
srcs="$OPTARG $srcs"
fi
done
for f in $srcs; do
if [ -a $f ]; then
src=$f
break
fi
done
if [ -z "$src" ]; then
echo "Unable to locate file."
false
exit
fi
cp "$src" "$dest"