Skip to content

Commit

Permalink
more VERBOSE less obvious
Browse files Browse the repository at this point in the history
CONTROL stuff
  • Loading branch information
Apaczer committed Aug 22, 2024
1 parent e629947 commit 3bde1e7
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions tools/gm2xpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<<control>>> instructions has been set from predefined values (plus basic <<<preinst|postinst>>>):"
echo -e "${CONTROL}"
fi
else
echo "opkg assets dir&files found in \"$(realpath ${OPKG_ASSETSDIR})/CONTROL\", setting following CONTROL entries:"
echo "<<<control>>>:"
cat ${OPKG_ASSETSDIR}/CONTROL/control
echo "<<<EOF>>>"
echo "<<<preinst>>>:"
cat ${OPKG_ASSETSDIR}/CONTROL/preinst
echo "<<<EOF>>>"
echo "<<<postinst>>>:"
cat ${OPKG_ASSETSDIR}/CONTROL/postinst
echo "<<<EOF>>>"
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 <<<control>>> instructions has been set from existing files:"
echo "<<<control>>>:"
cat ${OPKG_ASSETSDIR}/CONTROL/control
echo "<<<EOF>>>"
echo "<<<preinst>>>:"
cat ${OPKG_ASSETSDIR}/CONTROL/preinst
echo "<<<EOF>>>"
echo "<<<postinst>>>:"
cat ${OPKG_ASSETSDIR}/CONTROL/postinst
echo "<<<EOF>>>"
fi
fi

#---------------------------------------------#
Expand Down

0 comments on commit 3bde1e7

Please sign in to comment.