From 5770640a2d39afb7fd2b47dcd9d47c46df2680ed Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 23 Oct 2025 15:05:38 -0700 Subject: [PATCH] Add mobile version. Movie build process to be in the local directory, build folder. --- convert.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/convert.sh b/convert.sh index 7e8acd8..695fe56 100755 --- a/convert.sh +++ b/convert.sh @@ -13,7 +13,7 @@ date ## Global Variables ## ebook_prefix="TechnologyAlternatives" -work_dir="/tmp/$ebook_prefix" +work_dir="$DIR/build" header="header.md" ## Functions ## @@ -38,7 +38,7 @@ function insert { ebook="$2" log "Adding '$input' to '$ebook'." cat "$input" >> "$ebook" - echo -e "\n" >> "$ebook" + #echo -e "\n\n" >> "$ebook" } # Compile all the snippets into one Markdown file. @@ -69,6 +69,8 @@ function convert { if [[ -z "$version" ]]; then log "Version is null, removing the extra space." space=" " + else + space="" fi sed -i "s/$space{VERSION}/$version/g" "$source" @@ -119,7 +121,10 @@ combine "$name" "$header" `ls "$DIR"/content*.md` convert "$name.md" "" "$DIR" # Secondary, Mobile - +name="$ebook_prefix""Mobile" +combine "$name" "$header" "$DIR/content00"* "$DIR/content10"* \ + "$DIR/content70"* "$DIR/content90"* +convert "$name.md" "(Mobile Only)" "$DIR" # Secondary, Desktop