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
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
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.