basic android abb works, distcheck fails; refs #24
@ -0,0 +1,31 @@ |
||||
#! /bin/bash -ex |
||||
|
||||
## @id $Id$ |
||||
|
||||
## build resource.qrc file from a resource directory |
||||
## |
||||
## Argument: $1: resource path (default: resources) |
||||
## Result: file named <resource-path>.qrc (default: resources.qrc) |
||||
## |
||||
## Call: |
||||
## |
||||
## cd src |
||||
## ../build-resource-file.sh |
||||
|
||||
## 1 2 3 4 5 6 7 8 |
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890 |
||||
|
||||
RESOURCES=${1:-resources} |
||||
TARGET=${RESOURCES}.qrc |
||||
|
||||
test -d ${RESOURCES} |
||||
|
||||
echo "<RCC>" > ${TARGET} |
||||
for d in $(find resources -mindepth 1 -type d); do |
||||
echo " <qresource prefix=\"${d#${RESOURCES}/}\">" >> ${TARGET} |
||||
for f in $(find $d -mindepth 1 -maxdepth 1 -type f); do |
||||
echo " <file alias=\"${f##*/}\">$f</file>" >> ${TARGET} |
||||
done |
||||
echo " </qresource>" >> ${TARGET} |
||||
done |
||||
echo "</RCC>" >> ${TARGET} |
After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 3.3 KiB |
@ -0,0 +1,44 @@ |
||||
#! /bin/bash -ex |
||||
|
||||
## @id $Id$ |
||||
|
||||
## Resolve Debian Build Dependencies |
||||
## Installs all the required packages |
||||
## Call: ./resolve-debbuilddeps 'name of build schroot' |
||||
## e.g. call: ./resolve-debbuilddeps trusty_amd64 |
||||
|
||||
## 1 2 3 4 5 6 7 8 |
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890 |
||||
|
||||
SCHROOTNAME="$1" |
||||
|
||||
sed 's,@[^@]*@, dummytext,g' debian/control.in > debian/control |
||||
|
||||
if test -n "${SCHROOTNAME}"; then |
||||
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true) |
||||
else |
||||
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}') |
||||
|
||||
for pa in ${DEPS}; do |
||||
success=0 |
||||
for p in $(echo "${pa}" | sed 's,|, ,g'); do |
||||
if test -n "${SCHROOTNAME}"; then |
||||
if schroot -c "${SCHROOTNAME}" -u root -d / -- apt-get -y install ${p}; then |
||||
success=1 |
||||
break; |
||||
fi |
||||
else |
||||
if sudo apt-get -y install ${p}; then |
||||
success=1 |
||||
break; |
||||
fi |
||||
fi |
||||
done |
||||
if test ${success} -eq 0; then |
||||
echo "**** Error: Installation Failed: ${pa}" |
||||
fi |
||||
done |
||||
|
||||
echo "**** Success: All Dependencies Resolved" |
@ -0,0 +1,34 @@ |
||||
#! /bin/bash -ex |
||||
|
||||
## @id $Id$ |
||||
|
||||
## Resolve RPM Build Dependencies |
||||
## Installs all the required packages |
||||
## Call: ./resolve-rpmbuilddeps 'name of build schroot' |
||||
## e.g. call: ./resolve-rpmbuilddeps opensuse-13.2_x86_64 |
||||
|
||||
## 1 2 3 4 5 6 7 8 |
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890 |
||||
|
||||
SCHROOTNAME="$1" |
||||
PACKAGE_NAME=$(sed -n 's/^ *m4_define(x_package_name, \(.*\)).*/\1/p' configure.ac) |
||||
|
||||
sed 's,@[^@]*@,dummytext,g' ${PACKAGE_NAME}.spec.in > ${PACKAGE_NAME}.spec |
||||
|
||||
if test -n "${SCHROOTNAME}"; then |
||||
FILES=$(LANG= schroot -c ${SCHROOTNAME} -- rpmbuild -bb --define "_topdir ." --define "_sourcedir ." ${PACKAGE_NAME}.spec 2>&1 | sed -n 's, is needed by.*,,p') |
||||
if test -n "${FILES}"; then |
||||
schroot -c ${SCHROOTNAME} -u root -- yum install -y ${FILES} || \ |
||||
schroot -c ${SCHROOTNAME} -u root -- zypper install -y ${FILES} || \ |
||||
schroot -c ${SCHROOTNAME} -u root -- dnf install -y ${FILES} |
||||
fi |
||||
else |
||||
FILES=$(LANG= rpmbuild -bb --define "_topdir ." --define "_sourcedir ." ${PACKAGE_NAME}.spec 2>&1 | sed -n 's, is needed by.*,,p') |
||||
if test -n "${FILES}"; then |
||||
yum install -y ${FILES} || \ |
||||
zypper install -y ${FILES} || \ |
||||
dnf install -y ${FILES} |
||||
fi |
||||
fi |
||||
|
||||
echo "**** Success: All Dependencies Resolved" |