Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Mon, Jul 23, 2012 at 1:20 PM, Riccardo Magliocchetti
<riccardo.magliocchetti@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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.