--- freem/scripts/fmd-package 2025/04/06 03:38:05 1.1 +++ freem/scripts/fmd-package 2025/04/07 00:45:52 1.3 @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# $Id: fmd-package,v 1.1 2025/04/06 03:38:05 snw Exp $ +# $Id: fmd-package,v 1.3 2025/04/07 00:45:52 snw Exp $ # Prepare a binary package for the current platform # # @@ -25,6 +25,12 @@ # along with FreeM. If not, see . # # $Log: fmd-package,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 05:01:21 snw +# Initial working implementation of fmd package for dpkg +# # Revision 1.1 2025/04/06 03:38:05 snw # Prepare for adding packaging functionality to fmd # @@ -57,7 +63,7 @@ then usage fi -if [[ $# == 0 ]] +if [[ $# != 1 ]] then echo "package: must be run from 'fmd package'" exit 1 @@ -65,9 +71,17 @@ fi if [[ ${_fmd_can_package} == 0 ]] then - echo "fmd: FreeM does not yet support binary packages on ${_fmd_distribution} ${_fmd_kernel}" + echo "package: FreeM does not yet support binary packages on ${_fmd_distribution} ${_fmd_kernel}" exit 1 else - echo "fmd: FreeM supports ${_fmd_pkg_mechanism} packages on ${_fmd_distribution}" + echo "package: building ${_fmd_pkg_mechanism} package on ${_fmd_distribution} ${_fmd_kernel}" fi +CMDSCRIPT="${SCRIPT_DIR}/fmd-pkg-${_fmd_pkg_mechanism}" + +if [[ -f "${CMDSCRIPT}" ]] +then + ${CMDSCRIPT} $1 $2 +else + echo "package: ${CMDSCRIPT} not found" +fi