Add invirt-ood-build for building out of date packages
[invirt/packages/invirt-dev.git] / invirt-ood-build
diff --git a/invirt-ood-build b/invirt-ood-build
new file mode 100755 (executable)
index 0000000..41f1408
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+packages="$(invirt-ood-packages)"
+
+if [ ${#packages} -eq 0 ]; then
+    echo "No packages to build."
+    exit 0
+fi
+
+echo "The following NEW packages will be built:"
+echo $packages | fmt | sed 's/^/  /'
+echo "Do you want to continue? [Y/n]"
+
+read answer
+if [ "${answer:0:1}" = "n" -o "${answer:0:1}" = "N" ]; then
+   echo "Abort."
+   exit 0
+fi
+
+IFS="$(echo)"
+for package in $packages; do
+    invirt-build-release "$package"
+fi