Compare commits
3 Commits
91e7cf4451
...
1fad54824d
| Author | SHA1 | Date | |
|---|---|---|---|
| 1fad54824d | |||
| 5e279c9176 | |||
| 5770640a2d |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1 +1,5 @@
|
|||||||
|
# Generated Files
|
||||||
*.pdf
|
*.pdf
|
||||||
|
|
||||||
|
# Working Files
|
||||||
|
build
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Problem Statement
|
|
||||||
|
# Problem Statement
|
||||||
|
|
||||||
> "If it's free, you're the product."
|
> "If it's free, you're the product."
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Mobile
|
|
||||||
|
# Mobile
|
||||||
|
|
||||||
`Android` is the only mobile environment covered here. `iOS` is complicit in data harvesting and cannot be liberated. Some may argue that it's secure, and that may be true, but it is most definitely not private.
|
`Android` is the only mobile environment covered here. `iOS` is complicit in data harvesting and cannot be liberated. Some may argue that it's secure, and that may be true, but it is most definitely not private.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Desktop
|
|
||||||
|
# Desktop
|
||||||
|
|
||||||
## Operating Systems
|
## Operating Systems
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Server
|
|
||||||
|
# Server
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
# Offline Solutions
|
|
||||||
|
# Offline Solutions
|
||||||
|
|
||||||
## Pen & Paper!
|
## Pen & Paper!
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
# Conclusion
|
|
||||||
|
# Conclusion
|
||||||
|
|||||||
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