--- freem/scripts/fmd-changelog 2025/04/04 18:00:01 1.1 +++ freem/scripts/fmd-changelog 2025/04/07 00:45:52 1.3 @@ -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.3 2025/04/07 00:45:52 snw Exp $ # Gets the changelog for a specific version # # @@ -25,6 +25,12 @@ # along with FreeM. If not, see . # # $Log: fmd-changelog,v $ +# Revision 1.3 2025/04/07 00:45:52 snw +# Enhance fmd-pkg-dpkg to auto-generate the debian/changelog file from the FreeM ChangeLog +# +# 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 +42,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'" @@ -118,7 +141,8 @@ do else if [[ "${LINE:0:1}" == '*' ]] then - echo " ${LINE}" + OLINE=$(echo "${LINE}" | cut -d\* -f2) + echo "${OLINE:1}" fi fi fi