new commit

This commit is contained in:
Manuel 2023-05-15 10:32:14 +00:00
parent 13634b8868
commit 8cd88cd011
1 changed files with 7 additions and 15 deletions

View File

@ -29,40 +29,32 @@ _break=0 ; _wait=30 # Time (in seconds) to wait
cd ${WorkingDir} cd ${WorkingDir}
# Run the build script - expect 50 minutes, allow 60. # Run the build script - expect 50 minutes, allow 60.
./pepbld.sh 2>&1 | tee --append ${OutFile} ./pepbld.sh 2>&1 | tee -a ${OutFile}
# Timing matters, don't destroy the old one without a replacement. # Timing matters, don't destroy the old one without a replacement.
# Check for the ISO to appear and wait for things to settle. # Check for the ISO to appear and wait for things to settle.
#until [ -e fusato/*.iso ]
# do ((++_break))
# [ $_break -gt $_wait ] && break || sleep 1
#done
until [ -e fusato/*.iso ] until [ -e fusato/*.iso ]
do do ((++_break))
((++_break)) [ $_break -gt $_wait ] && break || sleep 1
[ $_break -gt $_wait ] && break || sleep 1
done done
if [ ${_break} -lt ${_wait} ] ; then if [ ${_break} -lt ${_wait} ] ; then
mv fusato/*.iso fusato/${FileName}.iso mv fusato/*.iso fusato/${FileName}.iso
# Make the checksum file. # Make the checksum file.
cd fusato cd fusato
echo "# ${FileName}" > ${FileName}-sha512.checksum echo "# ${FileName} ${TODAY}" > ${FileName}-sha512.checksum
sha512sum ${FileName}.iso >> ${FileName}-sha512.checksum sha512sum ${FileName}.iso >> ${FileName}-sha512.checksum
### <HouseKeeping> ### <HouseKeeping>
# Remove the previous files in ${LOCATION} . # Remove the previous files in ${LOCATION} .
rm -f ${LOCATION}/${PREFIX}-${SUFFIX}*.iso rm -f ${LOCATION}/${FileName}*.iso
rm -f ${LOCATION}/${PREFIX}-${SUFFIX}*-sha512.checksum rm -f ${LOCATION}/${FileName}*-sha512.checksum
#mv $(FileName}* ${LOCATION}/ #mv $(FileName}* ${LOCATION}/
mv ${FileName}.iso ${LOCATION}/${FileName}.iso mv ${FileName}.iso ${LOCATION}/${FileName}.iso
mv ${FileName}-sha512.checksum ${LOCATION}/${FileName}-sha512.checksum mv ${FileName}-sha512.checksum ${LOCATION}/${FileName}-sha512.checksum
# touch -t ${_stamp} ${LOCATION} ${LOCATION}/${FileName}*
touch ${LOCATION}/${FileName}* touch ${LOCATION}/${FileName}*
lb clean & lb clean &