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