From 8351f3374f9da42acd7251d26b962bae0d3890d5 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 14 Oct 2007 02:45:35 +0200 Subject: [PATCH] Initial import of makeall for autopackages. --- autopackage/makeall | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 autopackage/makeall diff --git a/autopackage/makeall b/autopackage/makeall new file mode 100755 index 0000000..a6b51cd --- /dev/null +++ b/autopackage/makeall @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +tempdir="$(mktemp -d /tmp/dc-apkg-XXXXXX)" +cd "$tempdir" +git clone git://git.dolda2000.com/doldaconnect +cd doldaconnect +./bootstrap +./configure + +packages="dcuilib dolcon doldacond guishell" + +for pkg in $packages; do + sfile="autopackage/$pkg.apspec" + pname="$(sed -n 's/^ShortName: *\([^ ]\+\)$/\1/p' "$sfile")" + if [ -z "$pname" ]; then + echo "makeall: could not find apkg shortname for $sfile" >&2 + exit 1 + fi + make clean + PACKAGEFILENAME="$pname.package" makepackage "$sfile" + mv "$pname.package" "$pname.package.meta" "$pname.xml" "$tempdir" +done + +rm -rf "$tempdir/doldaconnect" + +echo "packages are in $tempdir" -- 2.11.0