implement generateDigests()

このコミットが含まれているのは:
belliash 2012-01-18 10:51:59 +01:00
コミット 376f15f818
1個のファイルの変更20行の追加0行の削除

ファイルの表示

@ -63,6 +63,26 @@ function download() {
return ${RESULT}
}
#-------------------------------------------------------------------------------
# Generates a hash file
# Parameters: %digestfile% %filelist%
#-------------------------------------------------------------------------------
function generateDigests() {
if [ "${DIGESTS}" != "" ]; then
local OUTPUT="${1}"
shift
local FILELIST="${@}"
rm -f ${OUTPUT}
for FILE in ${FILELIST}; do
[ ! -f ${FILE} ] && return 1
for DIGEST in ${DIGESTS}; do
shash -a ${DIGEST} ${FILE} >> ${OUTPUT}
done
done
fi
return 0
}
#-------------------------------------------------------------------------------
# Creates all 'core' directories necessary for EzBuild to operate
#-------------------------------------------------------------------------------