From 3bde1e774fb8959c62a8ec68f26a2a625cc57b93 Mon Sep 17 00:00:00 2001 From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:47:28 +0200 Subject: [PATCH] more VERBOSE less obvious CONTROL stuff --- tools/gm2xpkg.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/tools/gm2xpkg.sh b/tools/gm2xpkg.sh index 2369f17..e62c8e1 100755 --- a/tools/gm2xpkg.sh +++ b/tools/gm2xpkg.sh @@ -389,22 +389,25 @@ Maintainer: ${MAINTAINER}\n\ Architecture: ${ARCH}" if ! { test -d ${OPKG_ASSETSDIR}/CONTROL && test -f ${OPKG_ASSETSDIR}/CONTROL/preinst && test -f ${OPKG_ASSETSDIR}/CONTROL/postinst && test -f ${OPKG_ASSETSDIR}/CONTROL/control; }; then - echo -e "no opkg assets dir&files found, executing with predefined values..." + echo -e "no opkg assets dir&files found, executing with predefined CONTROL specific values..." if test "x${VERBOSE}" == "xyes"; then echo -e "INFO: Following opkg <<>> instructions has been set from predefined values (plus basic <<>>):" echo -e "${CONTROL}" fi else - echo "opkg assets dir&files found in \"$(realpath ${OPKG_ASSETSDIR})/CONTROL\", setting following CONTROL entries:" - echo "<<>>:" - cat ${OPKG_ASSETSDIR}/CONTROL/control - echo "<<>>" - echo "<<>>:" - cat ${OPKG_ASSETSDIR}/CONTROL/preinst - echo "<<>>" - echo "<<>>:" - cat ${OPKG_ASSETSDIR}/CONTROL/postinst - echo "<<>>" + echo "opkg assets dir&files found in \"$(realpath ${OPKG_ASSETSDIR})/CONTROL\", using existing CONTROL files." + if test "x${VERBOSE}" == "xyes"; then + echo -e "INFO: Following opkg <<>> instructions has been set from existing files:" + echo "<<>>:" + cat ${OPKG_ASSETSDIR}/CONTROL/control + echo "<<>>" + echo "<<>>:" + cat ${OPKG_ASSETSDIR}/CONTROL/preinst + echo "<<>>" + echo "<<>>:" + cat ${OPKG_ASSETSDIR}/CONTROL/postinst + echo "<<>>" + fi fi #---------------------------------------------#