[CalendarServer-changes] [11598] CalendarServer/trunk/support/build.sh

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 12 11:17:19 PDT 2013


Revision: 11598
          http://trac.calendarserver.org//changeset/11598
Author:   dre at apple.com
Date:     2013-08-12 11:17:19 -0700 (Mon, 12 Aug 2013)
Log Message:
-----------
Actually, let's prefer sha1sum over sha1

Modified Paths:
--------------
    CalendarServer/trunk/support/build.sh

Modified: CalendarServer/trunk/support/build.sh
===================================================================
--- CalendarServer/trunk/support/build.sh	2013-08-12 18:14:36 UTC (rev 11597)
+++ CalendarServer/trunk/support/build.sh	2013-08-12 18:17:19 UTC (rev 11598)
@@ -112,14 +112,14 @@
     md5 () { "$(type -p md5sum)" "$@"; }
   fi;
 
+  if type -ft sha1sum > /dev/null; then
+    if [ -z "${hash}" ]; then hash="sha1sum"; fi;
+    sha1 () { "$(type -p sha1sum)" "$@"; }
+  fi;
   if type -ft shasum > /dev/null; then
     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/e2784f8e/attachment.html>


More information about the calendarserver-changes mailing list