Initial import of makeall for autopackages.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 14 Oct 2007 00:45:35 +0000 (02:45 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 14 Oct 2007 00:45:35 +0000 (02:45 +0200)
autopackage/makeall [new file with mode: 0755]

diff --git a/autopackage/makeall b/autopackage/makeall
new file mode 100755 (executable)
index 0000000..a6b51cd
--- /dev/null
@@ -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"