Modificar 'PepDeb32/BldHelper-release.sh'

Signed-off-by: Manuel  Fernando da silva rosa <manuelsilvarosa@gmail.com>
This commit is contained in:
Manuel Fernando da silva rosa 2023-05-23 18:41:39 +00:00
parent 8e7fbab024
commit 26ab619301
1 changed files with 4 additions and 7 deletions

View File

@ -31,23 +31,20 @@ mv *.iso ${FileName}-${TODAY}.iso
# Create the checksum file for the ISO # Create the checksum file for the ISO
sha512sum ${FileName}-${TODAY}.iso > ${FileName}-${TODAY}-sha512.checksum sha512sum ${FileName}-${TODAY}.iso > ${FileName}-${TODAY}-sha512.checksum
# Remove old ISO and checksum files from the desired location
rm -f ${LOCATION}/${FileName}*.iso
rm -f ${LOCATION}/${FileName}*-sha512.checksum
# Move the ISO and checksum files to the desired location # Move the ISO and checksum files to the desired location
mkdir -p ${LOCATION} mkdir -p ${LOCATION}
mv ${FileName}-${TODAY}.iso ${LOCATION} mv ${FileName}-${TODAY}.iso ${LOCATION}
mv ${FileName}-${TODAY}-sha512.checksum ${LOCATION} mv ${FileName}-${TODAY}-sha512.checksum ${LOCATION}
# Remove old ISO and checksum files from the desired location
rm -f ${LOCATION}/${FileName}*.iso
rm -f ${LOCATION}/${FileName}*-sha512.checksum
# Move the log file to the log directory (if it exists) # Move the log file to the log directory (if it exists)
if [ -f /tmp/${PREFIX}${SUFFIX}.out ]; then if [ -f /tmp/${PREFIX}${SUFFIX}.out ]; then
mv /tmp/${PREFIX}${SUFFIX}.out ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log mv /tmp/${PREFIX}${SUFFIX}.out ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log
fi fi
# Remove old files from the cache
grep "Del " ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log | sort -u | cut -f2,3 -d" " | tr " " "_" | tr ":" "*" | tr "+" "*" | xargs -I {} find ./cache/packages.* -name "{}*.deb" -delete
# Clean the build folder # Clean the build folder
lb clean lb clean