From 3aa9c9963f42e39f10d94b6e6a9847347e0a6055 Mon Sep 17 00:00:00 2001
From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04>
Date: Mon, 19 Dec 2005 19:38:39 +0000
Subject: [PATCH] fix for mac apps

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@3940 ee4ac58c-ac51-4696-9907-e4b3aa274f04
---
 etc/run_fasta | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/etc/run_fasta b/etc/run_fasta
index 31147c37b..bf6574a5d 100755
--- a/etc/run_fasta
+++ b/etc/run_fasta
@@ -6,7 +6,7 @@
 # to customise this script see the function called run_one_prog below
 
 
-RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_fasta,v 1.12 2005-02-21 11:51:32 tjc Exp $"
+RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_fasta,v 1.13 2005-12-19 19:38:39 tjc Exp $"
 
 PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'`
 
@@ -41,9 +41,12 @@ run_one_prog () {
 
 
     ### change these lines:
+    EXEC=${EXEC-`which fasta34 2>/dev/null`}
 
-    EXEC=fasta34
-
+    if [ ! -x "$EXEC" ]; then
+      EXEC=`find Artemis* -name fasta34 2>/dev/null`
+    fi
+    
     echo "about to start $EXEC with input from $INPUT_FILE and output to" 1>&2
     echo "$OUTPUT_FILE using database $DATABASE" 1>&2
 
-- 
GitLab