Mercurial > hg > vamp-plugin-pack
view deploy/linux/sign-plugins @ 50:6547119dbc54
Import all sets of RDF files; omit resources without titles; show any given library once only; warn to stderr if any are missing
author | Chris Cannam |
---|---|
date | Wed, 29 Jan 2020 15:00:32 +0000 |
parents | 28b1dd4ee370 |
children |
line wrap: on
line source
#!/bin/bash # This is purely a stub - we have no actual signing on Linux yet 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" echo "$path" } 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