~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RA.sh

  • Committer: Viktor Bursian
  • Date: 2013-06-06 15:10:08 UTC
  • Revision ID: vbursian@gmail.com-20130606151008-6641eh62f0lgx8jt
Tags: version_0.3.0
versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
appname=`basename $0 | sed s,\.sh$,,`
 
3
 
 
4
dirname=`dirname $0`
 
5
tmp="${dirname#?}"
 
6
 
 
7
if [ "${dirname%$tmp}" != "/" ]; then
 
8
 dirname=$PWD/$dirname/bin
 
9
fi
 
10
LD_LIBRARY_PATH=$dirname
 
11
export LD_LIBRARY_PATH
 
12
 
 
13
echo dirname $dirname
 
14
cd $dirname 
 
15
./RA $*
 
16