#!/bin/bash if [ "x$GEXTAMP_INSTALLED" = "x" ] ; then echo "Environment variable GEXTAMP_INSTALLED not set" >&2 echo "Have you sourced the extensions setup file?" >&2 exit fi if [ "x$GEXT_AFREPO" = "x" ] ; then echo "Environment variable GEXT_AFREPO not set" >&2 echo "Have you sourced the extensions setup file?" >&2 exit fi source $GEXT_AFREPO/AFR-SETUP.sh cd $GEXTAMP_INSTALLED/htdocs/afrepo if [ ! -d "audio-ids" ] ; then echo "Error: need to run 'afr.makelinks' first to generate MD5 hashed 'audio-ids' directory" >2 echo " based on the content of 'localtest'" >2 exit 1; fi bin/classify $*