Check for __res_query as well as res_query.
[doldaconnect.git] / autopackage / makeall
CommitLineData
8351f337
FT
1#!/bin/sh
2
3set -e
4
5tempdir="$(mktemp -d /tmp/dc-apkg-XXXXXX)"
6cd "$tempdir"
7git clone git://git.dolda2000.com/doldaconnect
8cd doldaconnect
9./bootstrap
10./configure
11
88ef9b91
FT
12packages="`cat autopackage/build`"
13version="`sed -n 's/^.* VERSION "\([^"]*\)".*$/\1/p' config.h`"
8351f337
FT
14
15for pkg in $packages; do
16 sfile="autopackage/$pkg.apspec"
17 pname="$(sed -n 's/^ShortName: *\([^ ]\+\)$/\1/p' "$sfile")"
18 if [ -z "$pname" ]; then
19 echo "makeall: could not find apkg shortname for $sfile" >&2
20 exit 1
21 fi
22 make clean
23 PACKAGEFILENAME="$pname.package" makepackage "$sfile"
88ef9b91 24 mv "$pname-$version.package" "$pname-$version.package.meta" "$pname.xml" "$tempdir"
8351f337
FT
25done
26
27rm -rf "$tempdir/doldaconnect"
28
29echo "packages are in $tempdir"