diff --git a/PepDeb32/BldHelper-release.sh b/PepDeb32/BldHelper-release.sh index 3a087eb..ec63d57 100755 --- a/PepDeb32/BldHelper-release.sh +++ b/PepDeb32/BldHelper-release.sh @@ -31,23 +31,20 @@ mv *.iso ${FileName}-${TODAY}.iso # Create the checksum file for the ISO 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 mkdir -p ${LOCATION} mv ${FileName}-${TODAY}.iso ${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) if [ -f /tmp/${PREFIX}${SUFFIX}.out ]; then mv /tmp/${PREFIX}${SUFFIX}.out ${LogDir}/${PREFIX}-${SUFFIX}-${BUILD}.log 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 lb clean