Annotation of freem/scripts/fmd-versions, revision 1.1

1.1     ! snw         1: #!/usr/bin/env bash
        !             2: 
        !             3: #
        !             4: #   $Id$
        !             5: #    Gets the changelog for a specific version
        !             6: #
        !             7: #  
        !             8: #   Author: Serena Willis <snw@coherent-logic.com>
        !             9: #    Copyright (C) 2025 Coherent Logic Development LLC
        !            10: #
        !            11: #
        !            12: #   This file is part of FreeM.
        !            13: #
        !            14: #   FreeM is free software: you can redistribute it and/or modify
        !            15: #   it under the terms of the GNU Affero Public License as published by
        !            16: #   the Free Software Foundation, either version 3 of the License, or
        !            17: #   (at your option) any later version.
        !            18: #
        !            19: #   FreeM is distributed in the hope that it will be useful,
        !            20: #   but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            21: #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            22: #   GNU Affero Public License for more details.
        !            23: #
        !            24: #   You should have received a copy of the GNU Affero Public License
        !            25: #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
        !            26: #
        !            27: #   $Log$
        !            28: #
        !            29: #
        !            30: # SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
        !            31: # SPDX-License-Identifier: AGPL-3.0-or-later
        !            32: #
        !            33: 
        !            34: function usage() {
        !            35:     echo "usage:  fmd versions"
        !            36:     exit 1
        !            37: }
        !            38: 
        !            39: if [[ $# == 0 ]]
        !            40: then
        !            41:     echo "versions:  must be run from 'fmd versions'"
        !            42:     exit 1
        !            43: fi
        !            44: 
        !            45: if [[ ! -f sem.ver ]]
        !            46: then
        !            47:     echo "Not in the root of the FreeM repository."
        !            48:     exit 1
        !            49: fi
        !            50: 
        !            51: FMD="$1"
        !            52: 
        !            53: cat ChangeLog | egrep "^VERSION" | cut -d" " -f2
        !            54: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>