Add other versions of the eBook. Add an explicit All to the main version.

This commit is contained in:
2025-10-23 15:14:41 -07:00
parent 1fad54824d
commit b3ccf9c163

View File

@@ -38,7 +38,6 @@ function insert {
ebook="$2" ebook="$2"
log "Adding '$input' to '$ebook'." log "Adding '$input' to '$ebook'."
cat "$input" >> "$ebook" cat "$input" >> "$ebook"
#echo -e "\n\n" >> "$ebook"
} }
# Compile all the snippets into one Markdown file. # Compile all the snippets into one Markdown file.
@@ -116,24 +115,27 @@ cp -v "$DIR/$header" ./
sed -i "s/{REVISION_DATE}/`date +'%Y-%m-%d'`/g" "$header" sed -i "s/{REVISION_DATE}/`date +'%Y-%m-%d'`/g" "$header"
# Primary, All In One (AIO) # Primary, All In One (AIO)
name="$ebook_prefix" name="$ebook_prefix""_All"
combine "$name" "$header" `ls "$DIR"/content*.md` combine "$name" "$header" `ls "$DIR"/content*.md`
convert "$name.md" "" "$DIR" convert "$name.md" "" "$DIR"
# Secondary, Mobile # Secondary, Mobile
name="$ebook_prefix""Mobile" name="$ebook_prefix""_Mobile"
combine "$name" "$header" "$DIR/content00"* "$DIR/content10"* \ combine "$name" "$header" "$DIR/content00"* "$DIR/content10"* \
"$DIR/content70"* "$DIR/content90"* "$DIR/content70"* "$DIR/content90"*
convert "$name.md" "(Mobile Only)" "$DIR" convert "$name.md" "(Mobile Only)" "$DIR"
# Secondary, Desktop # Secondary, Desktop
name="$ebook_prefix""_Desktop"
combine "$name" "$header" "$DIR/content00"* "$DIR/content20"* \
"$DIR/content70"* "$DIR/content90"*
convert "$name.md" "(Desktop Only)" "$DIR"
# Secondary, Server # Secondary, Server
name="$ebook_prefix""_Server"
combine "$name" "$header" "$DIR/content00"* "$DIR/content30"* \
# Secondary, Other "$DIR/content70"* "$DIR/content90"*
convert "$name.md" "(Server Only)" "$DIR"
## Finish! ## ## Finish! ##