Add mobile version. Movie build process to be in the local directory, build folder.
This commit is contained in:
11
convert.sh
11
convert.sh
@@ -13,7 +13,7 @@ date
|
|||||||
## Global Variables ##
|
## Global Variables ##
|
||||||
|
|
||||||
ebook_prefix="TechnologyAlternatives"
|
ebook_prefix="TechnologyAlternatives"
|
||||||
work_dir="/tmp/$ebook_prefix"
|
work_dir="$DIR/build"
|
||||||
header="header.md"
|
header="header.md"
|
||||||
|
|
||||||
## Functions ##
|
## Functions ##
|
||||||
@@ -38,7 +38,7 @@ 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" >> "$ebook"
|
#echo -e "\n\n" >> "$ebook"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Compile all the snippets into one Markdown file.
|
# Compile all the snippets into one Markdown file.
|
||||||
@@ -69,6 +69,8 @@ function convert {
|
|||||||
if [[ -z "$version" ]]; then
|
if [[ -z "$version" ]]; then
|
||||||
log "Version is null, removing the extra space."
|
log "Version is null, removing the extra space."
|
||||||
space=" "
|
space=" "
|
||||||
|
else
|
||||||
|
space=""
|
||||||
fi
|
fi
|
||||||
sed -i "s/$space{VERSION}/$version/g" "$source"
|
sed -i "s/$space{VERSION}/$version/g" "$source"
|
||||||
|
|
||||||
@@ -119,7 +121,10 @@ combine "$name" "$header" `ls "$DIR"/content*.md`
|
|||||||
convert "$name.md" "" "$DIR"
|
convert "$name.md" "" "$DIR"
|
||||||
|
|
||||||
# Secondary, Mobile
|
# 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
|
# Secondary, Desktop
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user