Files
OpenCellular/firmware/utilities/checksums/hashes.sh
2018-11-23 02:03:44 -08:00

16 lines
273 B
Bash
Executable File

#!/bin/sh -e
#
# Description
# This script records the md5 hashes of build objects
#
BIN_FILES=$(find $1 -executable -type f)
if [ "$2" = "-host" ]; then
MD5_FILE="hmd5sums.txt"
fi
if [ "$2" = "-ec" ]; then
MD5_FILE="ecmd5sums.txt"
fi
md5sum $BIN_FILES > $MD5_FILE