Trying a third time to have friendly comments in dependencies

This commit is contained in:
Rick Falkvinge
2019-02-18 13:53:31 +01:00
parent 07fcf994d3
commit f659aae9c9
@@ -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..."