summaryrefslogtreecommitdiff
path: root/scripts/md5sum
blob: 48c2463d000c814e3c1e49665bbc30c36878be5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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/md5sum ]; then
	/usr/bin/md5sum "$@"
else if [ -x /bin/md5sum ]; then
	/bin/md5sum "$@"
else
	md5 "$@" | sed 's#MD5 (\([^)]*\)) = \(.*\)#\2  \1#'
fi
fi