comparison 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
comparison
equal deleted inserted replaced
62:3fd66c30eb28 63:58e766558fac
1 #!/bin/bash
2
3 set -eu
4
5 current=$(hg id | awk '{ print $1; }')
6
7 case "$current" in
8 *+) echo "ERROR: Current working copy has been modified - not proceeding";exit 2;;
9 *);;
10 esac
11
12 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
13
14 mkdir -p packages
15 echo
16
17 if [ -d /Applications ]; then
18
19 app="Vamp Plugin Pack Installer"
20 volume="$app"-"$version"
21 dmg="$volume".dmg
22
23 deploy/osx/build-and-package.sh
24
25 mv "$dmg" packages/
26
27 else
28
29 echo "Not yet implemented for this platform"
30 fi
31
32 echo "Done"
33