Added fosdem_23.odt as a link

This commit is contained in:
Dave Morriss
2023-01-28 10:04:04 +00:00
parent 389848f43a
commit 80226491a7
8 changed files with 242 additions and 102 deletions

View File

@@ -13,9 +13,9 @@
# BUGS: ---
# NOTES: ---
# AUTHOR: Dave Morriss (djm), Dave.Morriss@gmail.com
# VERSION: 0.0.1
# VERSION: 0.0.2
# CREATED: 2023-01-09 17:07:23
# REVISION: 2023-01-09 17:39:22
# REVISION: 2023-01-28 09:58:38
#
#===============================================================================
@@ -31,6 +31,8 @@ BASEDIR="$HOME/HPR/feed_watcher"
cd "$BASEDIR" || { echo "Failed to cd to $BASEDIR"; exit 1; }
FOSDEM23="$BASEDIR/Conferences/FOSDEM/2023"
#
# Files and sanity checks
#
@@ -44,10 +46,18 @@ FWTPL3="$BASEDIR/feedWatcher_3.tpl"
echo "Template $FWTPL3 appears to be missing"
exit 1
}
FWTPL4="$BASEDIR/feedWatcher_4.tpl"
[ -e "$FWTPL4" ] || {
echo "Template $FWTPL4 appears to be missing"
exit 1
}
FWHTML="$BASEDIR/feedWatcher.html"
FWMKD="$BASEDIR/feedWatcher.mkd"
FWPDF="$BASEDIR/feedWatcher.pdf"
FDMKD4="$FOSDEM23/feedWatcher_4.mkd"
FDODT="$FOSDEM23/fosdem_23.odt"
#
# Generate HTML, JSON and OPML reports.
# The template defaults to 'feedWatcher.tpl', the JSON file to
@@ -87,6 +97,28 @@ else
echo "$FWPDF doesn't seem to have been written"
fi
#
# The ODF for FOSDEM. The template for Markdown first. The output is in the
# directory Conferences/FOSDEM/2023/. Then pandoc to generate ODT from the
# Markdown. We use a reference document (an older FOSDEM report) to set some
# attributes.
#
$FW -tem="$FWTPL4" -out="$FDMKD4"
if [[ -e "$FDMKD4" ]]; then
echo "PDF written to $FDMKD4"
pandoc -f markdown --standalone -t odt --reference-doc=reference.odt \
-o "$FDODT" "$FDMKD4"
if [[ -e "$FDODT" ]]; then
echo "Wrote the ODT file $FDODT"
else
echo "$FDODT doesn't seem to have been written"
fi
else
echo "$FDMKD4 doesn't seem to have been written"
echo "Can't run Pandoc"
fi
exit
# vim: syntax=sh:ts=8:sw=4:ai:et:tw=78:fo=tcrqn21