OK, line endings are the problems it seams. Though validating AU had other problems too.
Here is the updated AU validation script that is now working by double click for me:
Code:
#! /bin/bash
BASEDIR=$(dirname $0)
cd $BASEDIR
PUID=`echo | grep PLUG_UNIQUE_ID resource.h`
PUID=${PUID//\#define PLUG_UNIQUE_ID }
PUID=${PUID//\'}
# get the first 4 chars
PUID=${PUID:0:4}
PMID=`echo | grep PLUG_MFR_ID resource.h`
PMID=${PMID//\#define PLUG_MFR_ID }
PMID=${PMID//\'}
# get the first 4 chars
PMID=${PMID:0:4}
PII=`echo | grep PLUG_IS_INST resource.h`
PII="${PII//\#define PLUG_IS_INST }"
PDM=`echo | grep PLUG_DOES_MIDI resource.h`
PDM="${PDM//\#define PLUG_DOES_MIDI }"
TYPE="aufx"
if [ $PII == 1 ] # instrument
then
TYPE="aumu"
else
if [ $PDM == 1 ] # midi effect
then
TYPE="aumf"
fi
fi
if [ "$1" == "leaks" ]
then
echo "testing for leaks (i386 32 bit)"
echo 'launch a new shell and type: ps axc|awk "{if (\$5==\"auvaltool\") print \$1}" to get the pid';
echo "then leaks PID"
export MallocStackLogging=1
set env MallocStackLoggingNoCompact=1
auval -v $TYPE $PUID $PMID -w -q
unset MallocStackLogging
else
echo "\nvalidating... -----------------------------------"
echo "--------------------------------------------------"
echo "--------------------------------------------------"
echo "--------------------------------------------------"
echo "--------------------------------------------------"
echo "--------------------------------------------------"
auval -v $TYPE $PUID $PMID
fi
echo "done"