From f659aae9c9444ba82242b57e990b78b3fc5d2eb3 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 18 Feb 2019 13:53:31 +0100 Subject: [PATCH] Trying a third time to have friendly comments in dependencies --- BuildFiles/Packaging/scripts/repackage-build-package-distro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BuildFiles/Packaging/scripts/repackage-build-package-distro b/BuildFiles/Packaging/scripts/repackage-build-package-distro index 088062a1..8a2ab026 100755 --- a/BuildFiles/Packaging/scripts/repackage-build-package-distro +++ b/BuildFiles/Packaging/scripts/repackage-build-package-distro @@ -36,13 +36,13 @@ do echo "Packaging build $BUILDID for $DISTRO..." if [ -e dependencies/$PACKAGE-$DISTRO ]; then - DEPENDENCIES=$(cat dependencies/$PACKAGE-$DISTRO | tr -d ' \r') + DEPENDENCIESFILE=dependencies/$PACKAGE-$DISTRO else - DEPENDENCIES=$(cat dependencies/$PACKAGE-default | tr -d ' \r') + DEPENDENCIESFILE=dependencies/$PACKAGE-default fi # remove comments and roll up multiline to singleline in Dependencies field - DEPENDENCIES=$(echo ${DEPENDENCIES} | grep -v '^$\|^\s*\#' | tr -d '\n') + DEPENDENCIES=$(cat ${DEPENDENCIESFILE} | grep -v '^$\|^\s*\#' | tr -d '\n' | tr -d '\r' ) echo "Dependencies: $DEPENDENCIES" # read -p "Press [Enter] key to make control backup..."