Label the files better. Sort the file sizes.

This commit is contained in:
2025-10-23 15:19:00 -07:00
parent 758e8ed5db
commit bd96a6cdb5

View File

@@ -98,7 +98,7 @@ function convert {
log "Clean PDFs"
if [[ -e "$DIR/$ebook_prefix.pdf" ]]; then
echo "Old: "
du -had1 "$DIR"/*.pdf
du -had1 "$DIR"/*.pdf | sort -h
rm -v "$DIR"/*.pdf
fi
@@ -115,24 +115,24 @@ cp -v "$DIR/$header" ./
sed -i "s/{REVISION_DATE}/`date +'%Y-%m-%d'`/g" "$header"
# Primary, All In One (AIO)
name="$ebook_prefix""_All"
name="$ebook_prefix""_AllPlatforms"
combine "$name" "$header" `ls "$DIR"/content*.md`
convert "$name.md" "" "$DIR"
# Secondary, Mobile
name="$ebook_prefix""_Mobile"
name="$ebook_prefix""_MobileOnly"
combine "$name" "$header" "$DIR/content00"* "$DIR/content10"* \
"$DIR/content70"* "$DIR/content90"*
convert "$name.md" "(Mobile Only)" "$DIR"
# Secondary, Desktop
name="$ebook_prefix""_Desktop"
name="$ebook_prefix""_DesktopOnly"
combine "$name" "$header" "$DIR/content00"* "$DIR/content20"* \
"$DIR/content70"* "$DIR/content90"*
convert "$name.md" "(Desktop Only)" "$DIR"
# Secondary, Server
name="$ebook_prefix""_Server"
name="$ebook_prefix""_ServerOnly"
combine "$name" "$header" "$DIR/content00"* "$DIR/content30"* \
"$DIR/content70"* "$DIR/content90"*
convert "$name.md" "(Server Only)" "$DIR"
@@ -143,7 +143,7 @@ convert "$name.md" "(Server Only)" "$DIR"
cd "$DIR"
echo "New: "
du -had1 *.pdf
du -had1 *.pdf | sort -h
date