summaryrefslogtreecommitdiff
path: root/bin/antimatter-digest
diff options
context:
space:
mode:
Diffstat (limited to 'bin/antimatter-digest')
-rwxr-xr-xbin/antimatter-digest28
1 files changed, 28 insertions, 0 deletions
diff --git a/bin/antimatter-digest b/bin/antimatter-digest
new file mode 100755
index 0000000..d62a1f8
--- /dev/null
+++ b/bin/antimatter-digest
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+. /etc/profile
+
+set -e
+
+TMPL_PATH="$(dirname "${0}")/antimatter"
+HEADER_PATH="${TMPL_PATH}/antimatter.html.header"
+FOOTER_PATH="${TMPL_PATH}/antimatter.html.footer"
+ANTIMATTER="${ANTIMATTER:-antimatter}"
+
+(
+ cat "${HEADER_PATH}"
+
+ # Upgradable packages
+ "${ANTIMATTER}" -u --quiet --extended --html
+
+ # Dead packages (dropped by upstream)
+ "${ANTIMATTER}" -e --quiet --extended --html
+
+ # New packages - temp disabled
+ # "${ANTIMATTER}" -n --quiet --extended --html
+ # cat "${FOOTER_PATH}"
+
+) | sed \
+ -e "s|class='rt'|style='color: green;'|g" \
+ -e "s|class='frompkg'|style='color: brown;'|g" \
+ -e "s|class='topkg'|style='font-weight: bold; color: red;'|g"