blob: bff7f4e20d65fc900347b1fde2a14243d3c56c0f (
plain) (
blame)
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
|
--- ./third_party/libvpx/unpack_lib_posix.sh.orig 2014-08-12 21:03:39.000000000 +0200
+++ ./third_party/libvpx/unpack_lib_posix.sh 2014-08-13 09:56:58.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
#
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
@@ -54,16 +54,12 @@
fi
fi
-obj_list="$($ar t $lib_file | grep '\.o$')"
+obj_list="$($ar t $lib_file)"
function extract_object {
for f in $obj_list; do
filename="${f##*/}"
- if [ -z "$(echo $filename | grep $1)" ]; then
- continue
- fi
-
# Only echo this if debugging.
# echo "Extract $filename from archive to $out_dir/$1."
$ar p $lib_file $filename > $out_dir/$1
|