libo_git_from_tar.sh: use curl if wget is not found
Norbert Thiebaud
nthiebaud at gmail.com
Mon Jul 23 11:33:01 PDT 2012
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 !!
+ fi
+ fi
+}
+
+
>
> thanks,
> riccardo
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
More information about the LibreOffice
mailing list