annotate abyss_toolsuite-92636934a189/abyss/abyss_wrapper.sh @ 0:ce99b6666d1f draft

Uploaded
author msjeon
date Mon, 11 Jun 2012 14:48:15 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
1 #!/bin/bash
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
2
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
3 if [ $# -ne 3 ]
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
4 then
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
5 echo "ERROR: Expected exactly 3 arguments; got: $*" 1>&2
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
6 exit 1
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
7 fi
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
8
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
9 CMD=`ABYSS -k$1 $2 -o $3 2>&1`
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
10 if [ $? -ne 0 ]
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
11 then
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
12 {
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
13 echo "COMMAND FAILURE: $CMD" 1>&2
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
14 exit $?
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
15 }
ce99b6666d1f Uploaded
msjeon
parents:
diff changeset
16 fi