Annotation of freem/scripts/fmd-commit, revision 1.2
1.1 snw 1: #!/usr/bin/env bash
2:
3: #
1.2 ! snw 4: # $Id: fmd-commit,v 1.1 2025/04/04 18:00:01 snw Exp $
1.1 snw 5: # Commit to FreeM repository
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: #
1.2 ! snw 27: # $Log: fmd-commit,v $
! 28: # Revision 1.1 2025/04/04 18:00:01 snw
! 29: # *** empty log message ***
! 30: #
1.1 snw 31: #
32: # SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
33: # SPDX-License-Identifier: AGPL-3.0-or-later
34: #
35:
36: function usage() {
37: echo "usage: fmd commit <commit-message>"
38: exit 1
39: }
40:
41: if [[ $# == 0 ]]
42: then
43: echo "commit: must be run from 'fmd commit'"
44: exit 1
45: fi
46:
47: if [[ ! -f sem.ver ]]
48: then
49: echo "Not in the root of the FreeM repository."
50: exit 1
51: fi
52:
53: if [[ $# != 2 ]]
54: then
55: usage
56: fi
57:
1.2 ! snw 58: COMMIT_MESSAGE="$2"
1.1 snw 59:
60: ${FMD} log "${COMMIT_MESSAGE}"
61: cvs ci -m "${COMMIT_MESSAGE}"
62:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>