Add mobile version. Movie build process to be in the local directory, build folder.

This commit is contained in:
2025-10-23 15:05:38 -07:00
parent 91e7cf4451
commit 5770640a2d

View File

@@ -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