5 tempdir="$(mktemp -d /tmp/dc-apkg-XXXXXX)"
7 git clone git://git.dolda2000.com/doldaconnect
12 packages="`cat autopackage/build`"
13 version="`sed -n 's/^.* VERSION "\([^"]*\)".*$/\1/p' config.h`"
15 for 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
23 PACKAGEFILENAME="$pname.package" makepackage "$sfile"
24 mv "$pname-$version.package" "$pname-$version.package.meta" "$pname.xml" "$tempdir"
27 rm -rf "$tempdir/doldaconnect"
29 echo "packages are in $tempdir"