Mercurial > hg > vamp-plugin-pack
view deploy/sign-plugins @ 33:dd41d7369ed5
Test logic
author | Chris Cannam |
---|---|
date | Fri, 13 Dec 2019 13:54:27 +0000 |
parents | 375d2a839053 |
children |
line wrap: on
line source
#!/bin/bash set -e usage() { echo "Usage: $0 <plugin> [<plugin> ...]" 1>&2 echo " $0 <plugin-dir>" 1>&2 exit 2 } first_arg="$1" if [ -z "$first_arg" ]; then usage fi if [ -d "$first_arg" ] && [ -n "$2" ]; then usage fi paths=("$@") set -u sign() { path="$1" if [ -d /Applications ]; then codesign -s "Developer ID Application: Chris Cannam" -fv --options runtime "$path" fi } if [ -d "$first_arg" ]; then for path in "$first_arg"/*.{dll,so,dylib} ; do if [ -f "$path" ]; then sign "$path" fi done touch "$first_arg/.signed" else for path in "${paths[@]}"; do if [ ! -f "$path" ]; then echo "ERROR: Path $path not found" 1>&2 exit 1 fi done for path in "${paths[@]}"; do sign "$path" done fi exit 0