version 1.2, 2025/04/04 19:43:18
|
version 1.3, 2025/04/06 03:38:05
|
Line 25
|
Line 25
|
# along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
# along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
# |
# |
# $Log$ |
# $Log$ |
|
# Revision 1.3 2025/04/06 03:38:05 snw |
|
# Prepare for adding packaging functionality to fmd |
|
# |
# Revision 1.2 2025/04/04 19:43:18 snw |
# Revision 1.2 2025/04/04 19:43:18 snw |
# Switch to using environment catalog to determine user and group for environment, and remove -u and -g flags from freem |
# Switch to using environment catalog to determine user and group for environment, and remove -u and -g flags from freem |
# |
# |
Line 36
|
Line 39
|
# SPDX-License-Identifier: AGPL-3.0-or-later |
# SPDX-License-Identifier: AGPL-3.0-or-later |
# |
# |
|
|
if [[ $# == 0 ]] |
function usage() |
|
{ |
|
echo |
|
echo "Sets the FreeM version in this repository" |
|
echo |
|
echo "usage:" |
|
echo |
|
echo " fmd setversion <version>" |
|
echo " - Sets the FreeM version in this repository to <version>" |
|
echo |
|
echo " fmd setversion --revert" |
|
echo " - Reverts to the previous FreeM version" |
|
echo |
|
exit 0 |
|
} |
|
|
|
if [[ $1 == "help" ]] |
then |
then |
echo "setversion: must be run from 'fmd setversion'" |
usage |
exit 1 |
|
fi |
fi |
|
|
if [[ ! -f sem.ver ]] |
if [[ $# == 0 ]] |
then |
then |
echo "Not in the root of the FreeM repository." |
echo "setversion: must be run from 'fmd setversion'" |
exit 1 |
exit 1 |
fi |
fi |
|
|