#!/usr/bin/env bash # # $Id: fmd-versions,v 1.2 2025/04/06 03:38:05 snw Exp $ # Gets the changelog for a specific version # # # Author: Serena Willis # Copyright (C) 2025 Coherent Logic Development LLC # # # This file is part of FreeM. # # FreeM is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # FreeM 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 Affero Public License for more details. # # You should have received a copy of the GNU Affero Public License # along with FreeM. If not, see . # # $Log: fmd-versions,v $ # Revision 1.2 2025/04/06 03:38:05 snw # Prepare for adding packaging functionality to fmd # # Revision 1.1 2025/04/04 18:30:03 snw # Add fmd versions command to list all versions # # # # SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC # SPDX-License-Identifier: AGPL-3.0-or-later # function usage() { echo echo "Prints a list of all known FreeM versions" echo echo "usage: " echo echo " fmd versions" echo exit 0 } if [[ $1 == "help" ]] then usage fi if [[ $# == 0 ]] then echo "versions: must be run from 'fmd versions'" exit 1 fi if [[ ! -f sem.ver ]] then echo "Not in the root of the FreeM repository." exit 1 fi FMD="$1" cat ChangeLog | egrep "^VERSION" | cut -d" " -f2