[FFmpeg-devel] [PATCH 1/3] configure: Support backslashes in TMPDIR on OS/2.
Dave Yeo
daveryeo at telus.net
Fri Apr 15 04:24:22 CEST 2016
>From b322802ecc6d87fae3afb17fbca8217993d8d0c7 Mon Sep 17 00:00:00 2001
From: Dmitriy Kuminov <coding at dmik.org>
Date: Thu, 14 Apr 2016 01:41:30 +0400
Subject: [PATCH 1/3] configure: Support backslashes in TMPDIR on OS/2.
Signed-off-by: Dave Yeo <daveryeo at telus.net>
---
configure | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 0ff1b9d..ff80aee 100755
--- a/configure
+++ b/configure
@@ -734,7 +734,12 @@ check_deps(){
print_config(){
pfx=$1
- files=$2
+ if test "$host_os" = "os/2"; then
+ # awk treats \ as escape chars, convert them to / in paths
+ files=`echo "$2" | tr '\\\' /`
+ else
+ files=$2
+ fi
shift 2
map 'eval echo "$v \${$v:-no}"' "$@" |
awk "BEGIN { split(\"$files\", files) }
@@ -3550,10 +3555,10 @@ fi
tmpfile(){
tmp=$(mktemp -u "${TMPDIR}/ffconf.XXXXXXXX")$2 &&
- (set -C; exec > $tmp) 2>/dev/null ||
+ (set -C; exec > "$tmp") 2>/dev/null ||
die "Unable to create temporary file in $TMPDIR."
- append TMPFILES $tmp
- eval $1=$tmp
+ append TMPFILES "$tmp"
+ eval $1=\"$tmp\"
}
trap 'rm -f -- $TMPFILES' EXIT
--
2.0.0
More information about the ffmpeg-devel
mailing list