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" SCHROOTNAME="$1"
svn update || true sed 's,@[^@]*@, dummytext,g' debian/control.in > debian/control
./bootstrap -c
if test -n "${SCHROOTNAME}"; then if test -n "${SCHROOTNAME}"; then
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1) DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true)
else else
DEPS=$(dpkg-checkbuilddeps 2>&1) DEPS=$(dpkg-checkbuilddeps 2>&1 || true)
fi 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 for pa in ${DEPS}; do
success=0 success=0

Loading…
Cancel
Save