#!/usr/bin/env bash
#
# Print installed NEAT packages
# Copyright (C) 2013-2026 by Thomas Dreibholz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# Contact: dreibh@simula.no

# Bash options:
set -eu

# To let System-Maintenance display a list of important installed project
# packages, add a script [0-9][0-9]-name to /etc/system-maintenance.d. The
# scripts are executed in order of their number, with the first argument
# being the full list of installed packages.

if [ $# -lt 1 ] ; then
   echo >&2 "Usage: $0 package_list_file"
   exit 1
fi
fullPackageList="$1"

echo "====== Installed NEAT Software ==============================================="
grep "^neat-" "${fullPackageList}"
grep "^libneat-" "${fullPackageList}"

exit 0
