build/bin/antimatter-digest
2014-11-02 09:42:47 +01:00

29 lines
703 B
Bash
Executable File

#!/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"