[FFmpeg-cvslog] configure: escape colons in values written to config.fate
Mans Rullgard
git at videolan.org
Fri Apr 13 22:12:31 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Apr 12 21:32:33 2012 +0100| [6555acad10a6593d91fb09c7c20bbb4ab335bc02] | committer: Mans Rullgard
configure: escape colons in values written to config.fate
The fields in config.fate are colon-separated so any colons
within the fields should be escaped to prevent confusion.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6555acad10a6593d91fb09c7c20bbb4ab335bc02
---
configure | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index cc63146..2eb885b 100755
--- a/configure
+++ b/configure
@@ -2594,7 +2594,11 @@ case $target_os in
;;
esac
-echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate
+esc(){
+ echo "$*" | sed 's/%/%25/g;s/:/%3a/g'
+}
+
+echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIGURATION)" >config.fate
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
More information about the ffmpeg-cvslog
mailing list