Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: third_party/ffmpeg/copy_binaries.sh

Issue 149554: Rewrite ffmpeg_binaries target to use GYP built-ins and branding conditions. (Closed)
Patch Set: remove unused helper script Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/ffmpeg/ffmpeg.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/ffmpeg/copy_binaries.sh
diff --git a/third_party/ffmpeg/copy_binaries.sh b/third_party/ffmpeg/copy_binaries.sh
deleted file mode 100755
index 5c7f4120e6b8fb9e5712f55455e90c75f4ac2c48..0000000000000000000000000000000000000000
--- a/third_party/ffmpeg/copy_binaries.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-#
-# This is meant to replicate the behavior of cp, except that it will not fail
-# if the source files are not present. Something like
-# "cp ${SOURCES} ${DEST} || true" would also have worked except that
-# gyp does not allow for specifying || in the action, and the windows
-# cygwin envrionment does not include "true" making a script like this the
-# least ugly solution.
-
-SOURCES=""
-DESTINATION=""
-
-# Shift off every argument but the last and consider them the sources.
-# It would have probably been easier to put the destination first, but
-# this is not too hard and it replicates the argument ordering of cp.
-while (( "$#" != 1 )); do
- SOURCES="$SOURCES $1"
- shift
-done
-
-DESTINATION=$1
-
-# Early out if there was not enough parameters to discern a destination.
-# Also fail the command because this means we are being invoked incorrectly.
-if test -z "$DESTINATION"; then
- echo "ERROR: Destination empty."
- exit 1
-fi
-
-# Only try to copy the source file if it exists. It is not an error
-# if the input does not exist; we just silently ignore the input.
-for i in $SOURCES; do
- if test -f $i; then
- cp -v -f $i $DESTINATION
- fi
-done
-
-# Make sure we always succeed.
-exit 0
« no previous file with comments | « no previous file | third_party/ffmpeg/ffmpeg.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698