view deploy/clean-build-and-package @ 70:103ee4b82f30

Include only one set of rdf files (I was forgetting that of course S P O1 and S P O2 are not duplicates so will happily coexist & confuse matters). Install only if dialog not cancelled. + some RDF updates
author Chris Cannam
date Thu, 13 Feb 2020 13:53:48 +0000
parents 58e766558fac
children e7badb8450d8
line wrap: on
line source
#!/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"