Skip to content
Snippets Groups Projects
Commit 6920964a authored by tjc's avatar tjc
Browse files

fix for macosx app

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@3941 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 3aa9c996
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# to customise this script see the function called run_one_prog below # to customise this script see the function called run_one_prog below
RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_blastp,v 1.3 2005-02-21 11:45:33 tjc Exp $" RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_blastp,v 1.4 2005-12-20 11:50:59 tjc Exp $"
PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'` PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'`
...@@ -41,7 +41,18 @@ run_one_prog () { ...@@ -41,7 +41,18 @@ run_one_prog () {
### change these lines: ### change these lines:
EXEC=blastall EXEC=${EXEC-`which blastall 2>/dev/null`}
if [ ! -x "$EXEC" ]; then
EXEC=`find Artemis* -name blastall 2>/dev/null`
fi
if [ ! -d "$BLASTDB" ]; then
DATABASE_TMP="$PWD/"`find Artemis* -name blast-data 2>/dev/null`"/$DATABASE"
if [ -f "$DATABASE_TMP" ]; then
DATABASE="$DATABASE_TMP"
fi
fi
echo "about to start $EXEC with input from $INPUT_FILE and output to" echo "about to start $EXEC with input from $INPUT_FILE and output to"
echo "$OUTPUT_FILE using database $DATABASE" echo "$OUTPUT_FILE using database $DATABASE"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment