[FFmpeg-devel] [PATCH] tools: add reconfigure script

Lukasz Marek lukasz.m.luki2 at gmail.com
Fri Jun 20 19:33:25 CEST 2014


On 20.06.2014 19:00, Derek Buitenhuis wrote:
> On 6/20/2014 5:11 PM, Lukasz Marek wrote:
>> Simple script that allows to reconfigure with previously used switches.
>> Usefull after rebasing working branch.
>>
>> Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
>
> [...]
>
>> --- /dev/null
>> +++ b/tools/reconfigure
>> @@ -0,0 +1,5 @@
>> +#!/bin/bash
>
> We don't use bash. Use Bourne Shell.
>
>> +OPT=`cat config.h | grep FFMPEG_CONFIGURATION | awk '{print substr($0, index($0,$3))}'`
>
> AFAIK we use $() and not ``.

It seems you are right. Fixed both.

>
>> +OPT=`echo $OPT | awk '{print substr($0, 2, length($0)-2)}'`
>> +echo Reconfiguring with: \"$OPT\"
>> +./configure $OPT
>
> This doesn't work for out of tree builds.

I assumed one just use configure in that case, but fixed too.
To make is so sophisticated it can be ran from any dir now.

Thanks for review.

BTW, I deleted this script several times so I decided to push it finally :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tools-add-reconfigure-script.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140620/864dfcac/attachment.bin>


More information about the ffmpeg-devel mailing list