--- freem/scripts/fmd-changelog 2025/04/04 18:00:01 1.1 +++ freem/scripts/fmd-changelog 2025/04/06 03:38:05 1.2 @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# $Id: fmd-changelog,v 1.1 2025/04/04 18:00:01 snw Exp $ +# $Id: fmd-changelog,v 1.2 2025/04/06 03:38:05 snw Exp $ # Gets the changelog for a specific version # # @@ -25,6 +25,9 @@ # along with FreeM. If not, see . # # $Log: fmd-changelog,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:00:01 snw # *** empty log message *** # @@ -36,10 +39,27 @@ MINIMAL=0 function usage() { - echo "usage: fmd changelog [--minimal] " + echo + echo "Prints a FreeM ChangeLog entry" + echo + echo "usage:" + echo + echo " fmd changelog [--minimal] []" + echo + echo " If the '--minimal' flag is specified, will print only the ChangeLog entries" + echo " without the version header." + echo + echo " If is omitted, fmd changelog will assume you want the ChangeLog" + echo " for the current version in your copy of the repository." + echo exit 1 } +if [[ $1 == "help" ]] +then + usage +fi + if [[ $# == 0 ]] then echo "changelog: must be run from 'fmd changelog'"