libo_git_from_tar.sh: use curl if wget is not found

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Mon Jul 23 14:43:05 PDT 2012


Il 23/07/2012 20:33, Norbert Thiebaud ha scritto:
> On Mon, Jul 23, 2012 at 1:20 PM, Riccardo Magliocchetti
> <riccardo.magliocchetti at gmail.com>  wrote:
>> Hello,
>>
>> tried libo_git_from_tar.sh on mac os x and failed because of missing wget,
>> since we have curl which should do it let's try tp use it.
>>
>> This has been lightly tested, read: i've verified that the both on linux and
>> on mac os x it starts downloading. It is still running on mac os x and
>> tomorrow will know if it worked fine. Anyway the patch looks simple enough
>> to be correct.
>>
>> Please review.
>
> @@ -77,6 +77,22 @@ shift
>   }
>
>   ###
> +# Wrapper for curl / wget
> +#
> +download()
> +{
> +    if command -v wget; then
> +        wget -c $1 -P $2
> +    else
> +        if command -v curl; then
> +            curl -C --create-dirs $1 -o $2/$(basename $1)
> +            exit 1<--- that looks wrong !!

indeed, proper patch attached.

thanks,
riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-curl-if-available-in-libo_git_from_tar.patch
Type: text/x-diff
Size: 3045 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120723/c37eb6f9/attachment.patch>


More information about the LibreOffice mailing list