[Libreoffice] First build from sources
Thomas Klausner
wiz at NetBSD.org
Fri Oct 1 05:52:43 PDT 2010
On Fri, Oct 01, 2010 at 10:17:58PM +1300, Sidney Markowitz wrote:
> Thomas Klausner wrote, On 1/10/10 9:29 PM:
> > Which operating system's md5 has that -r option, and what does it do?
>
> FreeBSD does, see http://www.manpages.info/freebsd/md5.1.html
>
> "-r Reverses the format of the output. This helps with visual diffs."
Thank you.
Since "-n" does the same on NetBSD, I suggest the attached diff. Ok to
push? (With this patch applied, ./download fetch lots of files from
http://hg.services.openoffice.org/binaries/ ).
Thomas
-------------- next part --------------
diff --git a/fetch_tarballs.sh b/fetch_tarballs.sh
index f3fe683..5a866ac 100755
--- a/fetch_tarballs.sh
+++ b/fetch_tarballs.sh
@@ -94,7 +94,11 @@ for i in md5 md5sum /usr/local/bin/md5sum gmd5sum /usr/sfw/bin/md5sum /opt/sfw/b
done
if [ "$md5sum" = "md5" ]; then
- md5special=-r
+ if md5 -r < /dev/null > /dev/null 2>/dev/null; then
+ md5special=-r
+ elif md5 -n < /dev/null > /dev/null 2>/dev/null; then
+ md5special=-n
+ fi
fi
if [ -z "$md5sum" ]; then
More information about the LibreOffice
mailing list