From f4e50548b0d41f5b4e6faae3ddc7283dd1a5dd6c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 31 Mar 2011 20:21:13 +0200 Subject: I am to tupid for git, today. Revert "Revert "fix conflict, autoseect libgcj"" This reverts commit c2bd3a43342e37a05a97e12581dd2bd52993877a. --- scripts/sha256sum | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/sha256sum (limited to 'scripts/sha256sum') diff --git a/scripts/sha256sum b/scripts/sha256sum new file mode 100755 index 000000000..da34d9113 --- /dev/null +++ b/scripts/sha256sum @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +if [ -x /usr/bin/sha256sum ]; then + /usr/bin/sha256sum "$@" +else + tmp=$(mktemp -t yyy) + cat - > $tmp + shasum -a 256 "$@" $tmp +fi -- cgit v1.2.3