[CalendarServer-changes] [11597] CalendarServer/trunk/support/build.sh
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 12 11:14:36 PDT 2013
Revision: 11597
http://trac.calendarserver.org//changeset/11597
Author: dre at apple.com
Date: 2013-08-12 11:14:36 -0700 (Mon, 12 Aug 2013)
Log Message:
-----------
Added another hashing command for Linux: sha1sum
Modified Paths:
--------------
CalendarServer/trunk/support/build.sh
Modified: CalendarServer/trunk/support/build.sh
===================================================================
--- CalendarServer/trunk/support/build.sh 2013-08-10 16:00:38 UTC (rev 11596)
+++ CalendarServer/trunk/support/build.sh 2013-08-12 18:14:36 UTC (rev 11597)
@@ -116,6 +116,10 @@
if [ -z "${hash}" ]; then hash="sha1"; fi;
sha1 () { "$(type -p shasum)" "$@"; }
fi;
+ if type -ft sha1sum > /dev/null; then
+ if [ -z "${hash}" ]; then hash="sha1sum"; fi;
+ sha1 () { "$(type -p sha1sum)" "$@"; }
+ fi;
if [ "${hash}" == "sha1" ]; then
hash () { sha1 "$@"; }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130812/5050b67c/attachment.html>
More information about the calendarserver-changes
mailing list