diff deploy/clean-build-and-package @ 63:58e766558fac

Add overarching rebuild and package script
author Chris Cannam
date Tue, 11 Feb 2020 09:47:44 +0000
parents
children e7badb8450d8
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy/clean-build-and-package	Tue Feb 11 09:47:44 2020 +0000
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+set -eu
+
+current=$(hg id | awk '{ print $1; }')
+
+case "$current" in
+    *+) echo "ERROR: Current working copy has been modified - not proceeding";exit 2;;
+    *);;
+esac
+
+version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
+
+mkdir -p packages
+echo
+
+if [ -d /Applications ]; then
+
+    app="Vamp Plugin Pack Installer"
+    volume="$app"-"$version"
+    dmg="$volume".dmg
+
+    deploy/osx/build-and-package.sh
+
+    mv "$dmg" packages/
+
+else
+
+    echo "Not yet implemented for this platform"
+fi
+
+echo "Done"
+