version 1.1, 2025/04/06 03:38:05
|
version 1.2, 2025/04/06 05:01:21
|
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.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 |
# Revision 1.1 2025/04/06 03:38:05 snw |
# Prepare for adding packaging functionality to fmd |
# Prepare for adding packaging functionality to fmd |
# |
# |
Line 57 then
|
Line 60 then
|
usage |
usage |
fi |
fi |
|
|
if [[ $# == 0 ]] |
if [[ $# != 2 ]] |
then |
then |
echo "package: must be run from 'fmd package'" |
echo "package: must be run from 'fmd package'" |
exit 1 |
exit 1 |
Line 65 fi
|
Line 68 fi
|
|
|
if [[ ${_fmd_can_package} == 0 ]] |
if [[ ${_fmd_can_package} == 0 ]] |
then |
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 |
exit 1 |
else |
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 |
fi |
|
|
|
CMDSCRIPT="${SCRIPT_DIR}/fmd-pkg-${_fmd_pkg_mechanism}" |
|
|
|
if [[ -f "${CMDSCRIPT}" ]] |
|
then |
|
${CMDSCRIPT} $1 $2 |
|
else |
|
echo "package: ${CMDSCRIPT} not found" |
|
fi |