new script to resolve debian build dependencies

master
Marc Wäckerlin 9 years ago
parent 8709fdc69a
commit b3e98690c5
  1. 9
      resolve-debbuilddeps.sh

@ -12,15 +12,14 @@
SCHROOTNAME="$1"
svn update || true
./bootstrap -c
sed 's,@[^@]*@, dummytext,g' debian/control.in > debian/control
if test -n "${SCHROOTNAME}"; then
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1)
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true)
else
DEPS=$(dpkg-checkbuilddeps 2>&1)
DEPS=$(dpkg-checkbuilddeps 2>&1 || true)
fi
DEPS=$(echo "$DEPS" | | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}')
DEPS=$(echo "$DEPS" | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}')
for pa in ${DEPS}; do
success=0

Loading…
Cancel
Save