Changeset 366


Ignore:
Timestamp:
04/07/2011 03:03:46 PM (12 years ago)
Author:
marcus
Message:

r199 | walther | 2011-04-07 15:02:27 +0200 (Do, 07 Apr 2011) | 1 line

Creating link to locsat binary under /usr/bin/LocSAT (if possible). Otherwise place link into $HOME/LocSAT. The short form "lcs" is not used anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/setup/SHM-install.csh

    r346 r366  
    159159endif 
    160160set locsatpath=$dstpath/sh/util/locsat 
     161chmod 755 $locsatpath 
    161162set plth=`echo $locsatpath | wc -c` 
    162 if  ($plth > 25)  then 
    163         if  (-e $HOME/lcs)  \rm $HOME/lcs 
    164         ln -s $locsatpath $HOME/lcs 
    165         set locsatpath=$HOME/lcs 
     163 
     164# check for write access in /usr/bin -> create link for binary 
     165if (-w /usr/bin) then 
     166    if  (-e /usr/bin/LocSAT) \rm /usr/bin/LocSAT 
     167    ln -s $locsatpath /usr/bin/LocSAT 
     168    set locsatpath=/usr/bin/LocSAT 
     169# otherwise create link directly into user dir 
     170else if ($plth > 25)  then 
     171        if  (-e $HOME/lcs) \rm $HOME/lcs 
     172        if  (-e $HOME/LocSAT) \rm $HOME/LocSAT 
     173        ln -s $locsatpath $HOME/LocSAT 
     174        set locsatpath=$HOME/LocSAT 
    166175        set plth=`echo $locsatpath | wc -c` 
    167176        if  ($plth > 25)  then 
Note: See TracChangeset for help on using the changeset viewer.