436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
|
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
# For KitDLL, make a note of the original name
if [ "${kitdll}" = "1" ]; then
echo "${createdkit}" > "${outputname}-origname"
if [ -f "${sdk}" ]; then
mv "${sdk}" "${outputname}-sdk.tar.gz"
openssl sha1 "${outputname}-sdk.tar.gz" | sed 's@^.*= @@' > "${outputname}-sdk.tar.gz.sha1"
fi
fi
openssl sha1 "${outputname}" | sed 's@^.*= @@' > "${outputname}.sha1"
fi
# Note the SHA1 has of the file
if [ -f "${outputname}.sha1" ]; then
echo "SHA1: $(cat "${outputname}.sha1")"
else
echo "SHA1: not recorded"
fi
if [ -f "${outputname}-sdk.tar.gz" ]; then
if [ -f "${outputname}-sdk.tar.gz.sha1" ]; then
echo "SDK SHA1: $(cat "${outputname}-sdk.tar.gz.sha1")"
else
echo "SDK SHA1: not recorded"
fi
fi
# Test zip status
if unzip -l "${outputname}" 2>&1 | grep 'boot\.tcl' >/dev/null; then
canunzip="1"
else
canunzip="0"
|