|
|
@ -24,9 +24,17 @@ function install() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TO_INSTALL= |
|
|
|
|
|
|
|
|
|
|
|
if test -e debian/control.in -a ! -e debian/control; then |
|
|
|
if test -e debian/control.in -a ! -e debian/control; then |
|
|
|
sed 's,@[^@]*@, dummytext,g' debian/control.in > debian/control |
|
|
|
for f in $(sed -n 's, *AX_DEB_DEPEND_IFEXISTS(\([^)]*\)).*,\1,p' configure.ac); do |
|
|
|
|
|
|
|
if test -n "$(apt-cache policy -q ${f})" && ! dpkg -l "${f}"; then |
|
|
|
|
|
|
|
TO_INSTALL+=" ${f}" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
done |
|
|
|
trap "rm debian/control" INT TERM EXIT |
|
|
|
trap "rm debian/control" INT TERM EXIT |
|
|
|
|
|
|
|
sed 's,@DEB_DEPEND_IFEXISTS@,,g' debian/control.in | \ |
|
|
|
|
|
|
|
sed 's,@[^@]*@, dummytext,g' > debian/control |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if test -n "${SCHROOTNAME}"; then |
|
|
|
if test -n "${SCHROOTNAME}"; then |
|
|
@ -38,7 +46,6 @@ else |
|
|
|
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}') |
|
|
|
|
|
|
|
|
|
|
|
TO_INSTALL= |
|
|
|
|
|
|
|
for pa in ${DEPS}; do |
|
|
|
for pa in ${DEPS}; do |
|
|
|
if test ${pa//|/} = ${pa}; then |
|
|
|
if test ${pa//|/} = ${pa}; then |
|
|
|
TO_INSTALL+=" ${pa}" |
|
|
|
TO_INSTALL+=" ${pa}" |
|
|
|