diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-31 20:21:13 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-31 20:21:13 +0200 |
commit | f4e50548b0d41f5b4e6faae3ddc7283dd1a5dd6c (patch) | |
tree | 50b3bae39301c2ef89bbbabdb843a62d679e034e /scripts/sha256sum | |
parent | c2bd3a43342e37a05a97e12581dd2bd52993877a (diff) |
I am to tupid for git, today.
Revert "Revert "fix conflict, autoseect libgcj""
This reverts commit c2bd3a43342e37a05a97e12581dd2bd52993877a.
Diffstat (limited to 'scripts/sha256sum')
-rwxr-xr-x | scripts/sha256sum | 11 |
1 files changed, 11 insertions, 0 deletions
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 |