Compare commits
2 Commits
c70353a78a
...
bd96a6cdb5
| Author | SHA1 | Date | |
|---|---|---|---|
| bd96a6cdb5 | |||
| 758e8ed5db |
@@ -4,7 +4,7 @@
|
||||
|
||||
> "If it's free, you're the product."
|
||||
>
|
||||
> -- *some guy*
|
||||
> -- *some guy* [TBD/TODO]
|
||||
|
||||
## Privacy vs Security
|
||||
|
||||
|
||||
12
convert.sh
12
convert.sh
@@ -98,7 +98,7 @@ function convert {
|
||||
log "Clean PDFs"
|
||||
if [[ -e "$DIR/$ebook_prefix.pdf" ]]; then
|
||||
echo "Old: "
|
||||
du -had1 "$DIR"/*.pdf
|
||||
du -had1 "$DIR"/*.pdf | sort -h
|
||||
rm -v "$DIR"/*.pdf
|
||||
fi
|
||||
|
||||
@@ -115,24 +115,24 @@ cp -v "$DIR/$header" ./
|
||||
sed -i "s/{REVISION_DATE}/`date +'%Y-%m-%d'`/g" "$header"
|
||||
|
||||
# Primary, All In One (AIO)
|
||||
name="$ebook_prefix""_All"
|
||||
name="$ebook_prefix""_AllPlatforms"
|
||||
combine "$name" "$header" `ls "$DIR"/content*.md`
|
||||
convert "$name.md" "" "$DIR"
|
||||
|
||||
# Secondary, Mobile
|
||||
name="$ebook_prefix""_Mobile"
|
||||
name="$ebook_prefix""_MobileOnly"
|
||||
combine "$name" "$header" "$DIR/content00"* "$DIR/content10"* \
|
||||
"$DIR/content70"* "$DIR/content90"*
|
||||
convert "$name.md" "(Mobile Only)" "$DIR"
|
||||
|
||||
# Secondary, Desktop
|
||||
name="$ebook_prefix""_Desktop"
|
||||
name="$ebook_prefix""_DesktopOnly"
|
||||
combine "$name" "$header" "$DIR/content00"* "$DIR/content20"* \
|
||||
"$DIR/content70"* "$DIR/content90"*
|
||||
convert "$name.md" "(Desktop Only)" "$DIR"
|
||||
|
||||
# Secondary, Server
|
||||
name="$ebook_prefix""_Server"
|
||||
name="$ebook_prefix""_ServerOnly"
|
||||
combine "$name" "$header" "$DIR/content00"* "$DIR/content30"* \
|
||||
"$DIR/content70"* "$DIR/content90"*
|
||||
convert "$name.md" "(Server Only)" "$DIR"
|
||||
@@ -143,7 +143,7 @@ convert "$name.md" "(Server Only)" "$DIR"
|
||||
cd "$DIR"
|
||||
|
||||
echo "New: "
|
||||
du -had1 *.pdf
|
||||
du -had1 *.pdf | sort -h
|
||||
|
||||
date
|
||||
|
||||
|
||||
Reference in New Issue
Block a user