diff options
author | Måns Rullgård <mans@mansr.com> | 2006-12-15 22:36:19 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-12-15 22:36:19 +0000 |
commit | c505dd319113a7f0f43830c6b1ea5fdc697cb1e1 (patch) | |
tree | f1fcaac1376982da46e833e71999be146761861d /configure | |
parent | 0cd4faf977f034c603cb2d5c6bb84e728ed3fab3 (diff) | |
download | ffmpeg-c505dd319113a7f0f43830c6b1ea5fdc697cb1e1.tar.gz |
don't use non-standard sed -i option
Originally committed as revision 7321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -393,6 +393,12 @@ require(){ check_lib $header $func "$@" || die "ERROR: $name not found" } +apply(){ + file=$1 + shift + "$@" < "$file" > "$file.tmp" && mv "$file.tmp" "$file" || rm "$file.tmp" +} + CONFIG_LIST=' encoders decoders @@ -2105,6 +2111,6 @@ if test "$swscaler" != "no"; then else pkgconfig_generate libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" swscale pkgconfig_generate_uninstalled libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" - sed -i s/^Libs:.*$/Libs:/ libswscale.pc - sed -i s/^Libs:.*$/Libs:/ libswscale-uninstalled.pc + apply libswscale.pc sed s/^Libs:.*$/Libs:/ + apply libswscale-uninstalled.pc sed s/^Libs:.*$/Libs:/ fi |