properly parse Build-Depends: with | in it

This commit is contained in:
Hans-Christoph Steiner 2018-05-18 12:08:48 +02:00
parent 85af406fbf
commit 71d583ae8e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ set -x
apt-get -qy update
apt-get -qy dist-upgrade
export BUILD_DEPENDS=`perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p' < debian/control`
export BUILD_DEPENDS=`sed 's/\s*|[^,]*,/,/g' debian/control | perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p'`
apt-get -qy install --no-install-recommends \
build-essential dpkg-dev fakeroot git-buildpackage pristine-tar $BUILD_DEPENDS
apt-get -qy autoremove --purge