mirror of https://github.com/getdnsapi/getdns.git
32 lines
831 B
Bash
Executable File
32 lines
831 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export SRCDIR=`dirname $0`
|
|
export SRCROOT=`(cd "${SRCDIR}/../../.."; pwd)`
|
|
export TPKG="${SRCDIR}/tpkg"
|
|
export BUILDDIR=`pwd`
|
|
export BUILDROOT=`(cd "${BUILDDIR}/../../.."; pwd)`
|
|
export LIBTOOL="${BUILDROOT}/libtool"
|
|
|
|
if [ -f .tpkg.var.master ]
|
|
then
|
|
cat .tpkg.var.master \
|
|
| egrep -v '^export SRCDIR=|^export SRCROOT=|^export TPKG=' \
|
|
| egrep -v 'export BUILDDIR|^export BUILDROOT=|^export LIBTOOL=' \
|
|
>.tpkg.var.master.cleanup
|
|
mv .tpkg.var.master.cleanup .tpkg.var.master
|
|
fi
|
|
cat >>.tpkg.var.master << END_OF_TPKG_VAR_MASTER
|
|
export SRCDIR="${SRCDIR}"
|
|
export SRCROOT="${SRCROOT}"
|
|
export BUILDDIR="${BUILDDIR}"
|
|
export BUILDROOT="${BUILDROOT}"
|
|
export TPKG="${TPKG}"
|
|
export LIBTOOL="${LIBTOOL}"
|
|
END_OF_TPKG_VAR_MASTER
|
|
|
|
for TEST_PKG in ${SRCDIR}/*.tpkg
|
|
do
|
|
"${TPKG}" $* exe "${TEST_PKG}"
|
|
done
|
|
"${TPKG}" r
|